Skip to content

Commit cb9c669

Browse files
committed
remove unused test
1 parent ddce8b1 commit cb9c669

File tree

3 files changed

+4
-247
lines changed

3 files changed

+4
-247
lines changed

packages/core/__tests__/helpers/loadCli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export async function loadCliFromFixture(fixtureDir) {
1313
try {
1414
process.chdir(fixtureDir); // Change to fixture directory
1515

16-
// The init.cjs exports a cli function, so call it
16+
// The init.js exports a cli function, so call it
1717

1818
if (typeof mod === 'function') {
1919
return await Promise.resolve(mod(args)); // run the CLI
2020
} else if (typeof mod.default === 'function') {
2121
return await Promise.resolve(mod.default(args)); // run the CLI (ESM default export)
2222
} else {
23-
throw new Error('Could not find CLI function in init.cjs');
23+
throw new Error('Could not find CLI function in init.js');
2424
}
2525
} finally {
2626
process.chdir(originalCwd); // Always restore original directory

packages/core/__tests__/unit/ast.test.cjs

Lines changed: 0 additions & 243 deletions
This file was deleted.

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"test:next": "playwright test -c __tests__/config/playwright.next.config.js",
4040
"test:vite": "playwright test -c __tests__/config/playwright.vite.config.js",
4141
"test:integration": "node --test __tests__/unit/index.test.cjs",
42-
"test:cli": "node --test __tests__/unit/cli.test.cjs",
42+
"test:cli": "node --test __tests__/unit/*.test.cjs",
4343
"test:all": "pnpm run test:vite && pnpm run test:next && pnpm run test:unit && pnpm run test:cli && pnpm run test:integration",
4444
"test:unit": "tsx --test src/**/*.test.ts"
4545
},
@@ -94,4 +94,4 @@
9494
"@types/react": "^19.1.8",
9595
"tsx": "^4.20.3"
9696
}
97-
}
97+
}

0 commit comments

Comments
 (0)