Open bstro opened 3 years ago
same issue, I thought I configured it wrong.
Same error with vue
jest.config.js
const config = {
preset: 'vite-jest'
}
module.exports = config
Scripts (package.json
)
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"test": "vite-jest"
},
Using vite-jest version 0.0.3
I am using vite-jest
0.0.3
, running my tests withvite-jest
. I am seeing failures across all my tests for essentially the same reason. Here is a screenshot of the first failure that looks like anesm
syntax issue:jest config looks like this:
vite config looks like this: