I had the same problem, got it to working by downing jest version to 26.6.3 ts-jest to 26.5.6
here is my package.json
{ "name": "vite-testing", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && vite build", "serve": "vite preview", "test": "jest src" }, "dependencies": { "vue": "^3.2.13" }, "devDependencies": { "@types/jest": "^26.0.2", "@vitejs/plugin-vue": "^1.9.0", "@vue/test-utils": "^2.0.0-rc.15", "jest": "^26.6.3", "ts-jest": "^26.5.6", "typescript": "^4.4.3", "vite": "^2.5.10", "vue-jest": "^5.0.0-alpha.10", "vue-tsc": "^0.3.0" } }
This also worked for me
the problem now is it's passing while it shouldn't lol
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I had the same problem, got it to working by downing
jest version to 26.6.3
ts-jest to 26.5.6
here is my package.json
{
"name": "vite-testing",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview",
"test": "jest src"
},
"dependencies": {
"vue": "^3.2.13"
},
"devDependencies": {
"@types/jest": "^26.0.2",
"@vitejs/plugin-vue": "^1.9.0",
"@vue/test-utils": "^2.0.0-rc.15",
"jest": "^26.6.3",
"ts-jest": "^26.5.6",
"typescript": "^4.4.3",
"vite": "^2.5.10",
"vue-jest": "^5.0.0-alpha.10",
"vue-tsc": "^0.3.0"
}
}
This also worked for me
the problem now is it's passing while it shouldn't lol