Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(package): the import scan reads modules only [P3]

Corey Olson8bd69813d34a
diff --git a/test/package.test.js b/test/package.test.js
index 79adeb32..a514eafe 100644
--- a/test/package.test.js
+++ b/test/package.test.js
@@ -188,7 +188,7 @@ test('the import scan finds a package however it is imported, and nothing that i
test('every import is a node: built-in or a relative file [P3]', () => {
const files = [
- ...readdirSync(join(ROOT, 'src')).map((name) => join(ROOT, 'src', name)),
+ ...readdirSync(join(ROOT, 'src')).filter((name) => /\.m?js$/.test(name)).map((name) => join(ROOT, 'src', name)),
join(ROOT, 'bin', 'pullboard.js'),
];
const found = importsIn(files.map((file) => readFileSync(file, 'utf8')));