We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get this error message when I run "vitest"
package.json
{ "name": "tdd-training", "version": "1.0.0", "main": "index.js", "license": "MIT", "scripts": { "test": "vitest" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/parser": "^5.36.2", "eslint": "^8.23.0", "typescript": "^4.8.3", "vitest": "^0.23.2" } }
vite.config.ts
import {defineConfig} from 'vitest/config' export default defineConfig({ test:{} })
sum.test.ts
import {test, expect} from 'vitest'; test('Testing sum', ()=> { expect(2+2).toBe(4) });
Then I run npm test Result:
npm test
Also, I am using npm but this happens the same exact way when I use yarn too
System: OS: Windows 10 10.0.19044 CPU: (2) x64 Intel(R) Celeron(R) CPU N3350 @ 1.10GHz Memory: 665.01 MB / 3.87 GB Binaries: Node: 16.17.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.19.1 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.27) Internet Explorer: 11.0.19041.1566
npm
The text was updated successfully, but these errors were encountered:
Apparently this was happening because i was running on Windows A tried on WSL and it worked✔
Sorry, something went wrong.
No test suite found
v0.28.5+
No branches or pull requests
Describe the bug
I get this error message when I run "vitest"
Reproduction
package.json
vite.config.ts
sum.test.ts
Then I run
npm test
Result:
Also, I am using npm but this happens the same exact way when I use yarn too
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: