repobuddy / storybook-addon-vis

3 stars 0 forks source link

unstable run #22

Open unional opened 6 days ago

unional commented 6 days ago

https://github.com/repobuddy/storybook-addon-vis/actions/runs/11609563456/job/32327048579

> vitest run --coverage

The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
Loaded  vitest@2.1.4  and  @vitest/coverage-v8@2.1.3 .
Running mixed versions is not supported and may lead into bugs
Update your dependencies and make sure the versions match.

 RUN  v2.1.4 /home/runner/work/storybook-addon-vis/storybook-addon-vis
      [testcase-react-vite-ts] Browser runner started by playwright at http://localhost:63315/
      [sb] Browser runner started by playwright at http://localhost:63316/
      Coverage enabled with v8

 ✓ |vis:node| src/vitest-plugin.spec.node.ts  (2 tests) 6ms
9:42:46 AM [vite] ✨ new dependencies optimized: @vitest/coverage-v8/browser
9:42:46 AM [vite] ✨ optimized dependencies changed. reloading

[vitest] Vite unexpectedly reloaded a test. This may cause tests to fail, lead to flaky behaviour or duplicated test runs.
For a stable experience, please add mentioned dependencies to your config's `optimizeDeps.include` field manually.

 ✓ |sb| src/@vitest/browser/context.spec.ts  (2 tests) 31ms
 ✓ |sb| src/image_data.stories.tsx  (1 test) 83ms
 ✓ |sb| src/expect.to_match_image_snapshot.stories.tsx  (4 tests) 707ms
   ✓ Success 349ms
 ✓ |sb| src/@vitest/browser/context.stories.tsx  (1 test) 41ms
 ✓ |sb| src/param.stories.tsx  (2 tests) 540ms
   ✓ Meet Failure Threshold 303ms
 ✓ |sb| src/per_meta.stories.tsx  (2 tests) 266ms
 ✓ |sb| src/expect.to_match_image_snapshot.spec.ts  (6 tests) 576ms
 ✓ |sb| src/@vitest/browser/page.image_snapshot.spec.ts  (1 test) 275ms
 ✓ |sb| src/expect.to_match_image_snapshot.global.spec.ts  (1 test) 7ms
 ✓ |sb| src/vitest-setup.spec.ts  (2 tests) 145ms
 ✓ |sb| src/per_story.stories.tsx  (3 tests) 343ms
 ✓ |sb| src/tags.spec.ts  (6 tests) 12ms
 ✓ |sb| src/@vitest/browser/page.image_snapshot.stories.tsx  (1 test) 15ms
 ✓ |sb| src/image_resizer.spec.ts  (3 tests) 41ms

⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'imports')
 ❯ node_modules/.pnpm/vite@5.4.10_@types+node@22.8.5/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:50832:71
 ❯ process.processTicksAndRejections node:internal/process/task_queues:95:5

 ELIFECYCLE  Command failed with exit code 1.
ERROR: "coverage" exited with 1.
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 1.

Seems like some loading issue in testcases/react-vite-ts

unional commented 3 days ago

Upstream https://github.com/vitest-dev/vitest/issues/6832