I have got an error TS2307: Cannot find module '@jest/globals' or its corresponding type declarations while importing values for my default test suit (but it passes successfully)
import { describe, expect, test } from '@jest/globals'
describe('Example test', () => {
test('something', () => {
expect('').toBeFalsy()
})
})
my package.json
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/node": "^16.11.11",
...
"typescript": "^4.4.4",
},
"optionalDependencies": {
...
},
"dependencies": {
"@jest/globals": "^27.4.2",
"babel-preset-jest": "^27.4.0",
...
}
}
Can anybody helps me?