I'm getting this message when running jest test:
● Validation Warning:
Unknown option "globalSetup" with value "./testUtils/callSetup.js" was found.
This is probably a typing mistake. Fixing it will remove this message.
My package.json is like this:
"jest": {
"rootDir": "./src",
"globalSetup": "./testUtils/callSetup.js",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
My project is a yarn workspace as well and the package.json above is part of a package.
Source tree is like:
|-- packages
|-- server
|-- package.json
|-- src
|-- testUtils
|-- callSetup.js
Aucun commentaire:
Enregistrer un commentaire