Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛Bug]:vitestが必ずコケる #534

Open
usuyuki opened this issue Aug 3, 2023 · 0 comments
Open

[🐛Bug]:vitestが必ずコケる #534

usuyuki opened this issue Aug 3, 2023 · 0 comments
Labels
🐛bug Something isn't working

Comments

@usuyuki
Copy link
Member

usuyuki commented Aug 3, 2023

🐛 概要

node@a609ab13bc1a:/frontend$ tail /frontend/tests/unit/index.vitest.ts 
import { expect, test } from 'vitest';

test('adds 1 + 2 to equal 3', () => {
        expect(1 + 2).toBe(3);
});   

なのに

 FAIL  tests/unit/index.vitest.ts [ tests/unit/index.vitest.ts ]
Error: Failed to load url /frontend/tests/unit/index.vitest.ts (resolved id: /frontend/tests/unit/index.vitest.ts). Does the file exist?
 ❯ loadAndTransform node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-3b8eb186.js:54885:21

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

 Test Files  1 failed (1)
      Tests  no tests
   Start at  11:29:46
   Duration  923ms (transform 10ms, setup 1ms, collect 0ms, tests 0ms, environment 363ms, prepare 89ms)

 ELIFECYCLE  Command failed with exit code 1.  

原因

備考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Development

No branches or pull requests

1 participant