move files from src/ (App.tsx and App.spec.tsx) to src/modules/
run the tests again npm run test-ct
Expected behavior
The tests should pass
Actual behavior
Tests are not run due to following error
RollupError: Could not resolve "./App" from "playwright/index.tsx"
file: /Users/olek/playwright-ct-cache-repro/playwright/index.tsx
at getRollupError (/Users/olek/playwright-ct-cache-repro/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
at error (/Users/olek/playwright-ct-cache-repro/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
at ModuleLoader.handleInvalidResolvedId (/Users/olek/playwright-ct-cache-repro/node_modules/rollup/dist/es/shared/node-entry.js:19102:24)
at ModuleLoader.resolveDynamicImport (/Users/olek/playwright-ct-cache-repro/node_modules/rollup/dist/es/shared/node-entry.js:19162:58)
at /Users/olek/playwright-ct-cache-repro/node_modules/rollup/dist/es/shared/node-entry.js:19049:32
3 did not run
which doesn't really say much
Additional context
The file paths the the components are cached in playwright/.cache/metainfo.json file and in case any doesn't exist, the run fails without a proper explanation.
The best solution would probably be to verify the paths and invalidate the cache. Otherwise moving it to e.g. node_modules would likely slightly improve the DX, as usually with this kind of errors people remove the folder hoping it'd fix things.
Version
1.44.1
Steps to reproduce
npm install
npm run test-ct
src/
(App.tsx
andApp.spec.tsx
) tosrc/modules/
npm run test-ct
Expected behavior
The tests should pass
Actual behavior
Tests are not run due to following error
which doesn't really say much
Additional context
The file paths the the components are cached in
playwright/.cache/metainfo.json
file and in case any doesn't exist, the run fails without a proper explanation.The best solution would probably be to verify the paths and invalidate the cache. Otherwise moving it to e.g.
node_modules
would likely slightly improve the DX, as usually with this kind of errors people remove the folder hoping it'd fix things.Environment