参考: https://jest-extended.jestcommunity.dev/docs/getting-started/setup
To automatically extend expect with all matchers, you can use
// package.json
"jest": {
"setupFilesAfterEnv": ["jest-extended/all"]
}
参考: https://jest-extended.jestcommunity.dev/docs/getting-started/setup
To automatically extend expect with all matchers, you can use
// package.json
"jest": {
"setupFilesAfterEnv": ["jest-extended/all"]
}