Conversation
Co-authored-by: magne4000 <[email protected]>
Deploying bati-website with
|
| Latest commit: |
34ecb65
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://621f024a.bati-website.pages.dev |
| Branch Preview URL: | https://copilot-fix-issue-from-pr-68.bati-website.pages.dev |
|
@copilot Why would storybook tests generate the error we see in the CI ("Error: Failed to resolve entry for package "@batijs/tests-utils". The package may have incorrect main/module/exports specified in its package.json.") and not the other tests? |
The error is specific to storybook because Other tests don't run any package installation in their after hooks, so they're unaffected. Fixed in |
72f04dd to
e5f585c
Compare
03a2f64 to
b839281
Compare
|
cc @yannbf |
storybook@latest init --yes(run viahooks/after.ts) creates avitest.workspace.tsthat takes precedence over thevitest.config.tswritten byprepare.ts. The storybook-generated workspace adds a browser test project that fails to resolve@batijs/tests-utils(a Node.js package), breaking the test runner. No other integration is affected because none install packages or create vitest configs in their after hooks.Changes
packages/tests/src/prepare.ts— after writingvitest.config.ts, delete allvitest.workspace.*variants (ts,mts,cts,js,mjs,cjs) that may have been created by tools during thehooks/after.tsphasepackages/tests/tests/FRAMEWORK+storybook.spec.ts— restored withmode: "none"(no server needed); verifies.storybook/main.*exists andstorybook/build-storybookscripts are present inpackage.json.github/workflows/tests-entry.yml— storybook matrix entries (solid/react/vue --storybook --eslint) restored💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.