File tree Expand file tree Collapse file tree 3 files changed +4
-247
lines changed
Expand file tree Collapse file tree 3 files changed +4
-247
lines changed Original file line number Diff line number Diff 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 },
9494 "@types/react" : " ^19.1.8" ,
9595 "tsx" : " ^4.20.3"
9696 }
97- }
97+ }
You can’t perform that action at this time.
0 commit comments