Add 'jest-plugin-must-assert' package

This will make sure that all jest test cases calls atleast one asset
This commit is contained in:
2019-07-20 18:30:34 +05:30
parent 17be30ca20
commit d939bde9f7
3 changed files with 2421 additions and 2420 deletions
+2419 -2419
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -86,6 +86,7 @@
"eslint-plugin-react": "7.14.2", "eslint-plugin-react": "7.14.2",
"eslint-plugin-react-hooks": "1.6.1", "eslint-plugin-react-hooks": "1.6.1",
"jest": "24.8.0", "jest": "24.8.0",
"jest-plugin-must-assert": "^1.4.1",
"jest-prettyhtml-matchers": "1.0.22", "jest-prettyhtml-matchers": "1.0.22",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"prettier": "1.18.2", "prettier": "1.18.2",
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
rootDir: process.cwd(), rootDir: process.cwd(),
roots: ['<rootDir>/test'], roots: ['<rootDir>/test'],
setupFiles: ['<rootDir>/scripts/jest/setupEnvironment.ts'], setupFiles: ['<rootDir>/scripts/jest/setupEnvironment.ts'],
setupFilesAfterEnv: ['<rootDir>/scripts/jest/setupJest.ts'], setupFilesAfterEnv: ['<rootDir>/scripts/jest/setupJest.ts', 'jest-plugin-must-assert'],
testMatch: ['<rootDir>/test/*.spec.ts?(x)'], testMatch: ['<rootDir>/test/*.spec.ts?(x)'],
transform: { '^.+\\.(js|tsx?)$': 'ts-jest' } transform: { '^.+\\.(js|tsx?)$': 'ts-jest' }
} }