Skip to content

Commit

Permalink
Fix Jest console.assert
Browse files Browse the repository at this point in the history
See console.assert not throwing with v22.4.0 jestjs/jest#5634
  • Loading branch information
tkrotoff committed Feb 22, 2018
1 parent e5e5594 commit 8ddcd64
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
setupFiles: ['../react-form-with-constraints/src/SetupEnzyme.ts'],
setupFiles: ['../react-form-with-constraints/src/JestSetup.ts'],

transform: {
'^.+\\.tsx?$': 'ts-jest'
Expand All @@ -9,6 +9,5 @@ module.exports = {

collectCoverageFrom: [
'src/**/*.{ts,tsx}'
],
mapCoverage: true
]
};
5 changes: 2 additions & 3 deletions packages/react-form-with-constraints-native/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
preset: 'react-native',

setupFiles: ['../react-form-with-constraints/src/SetupEnzyme.ts'],
setupFiles: ['../react-form-with-constraints/src/JestSetup.ts'],

transform: {
'^.+\\.tsx?$': 'ts-jest',
Expand All @@ -12,6 +12,5 @@ module.exports = {

collectCoverageFrom: [
'src/**/*.{ts,tsx}'
],
mapCoverage: true
]
};
5 changes: 2 additions & 3 deletions packages/react-form-with-constraints-tools/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
setupFiles: ['../react-form-with-constraints/src/SetupEnzyme.ts'],
setupFiles: ['../react-form-with-constraints/src/JestSetup.ts'],

transform: {
'^.+\\.tsx?$': 'ts-jest'
Expand All @@ -9,6 +9,5 @@ module.exports = {

collectCoverageFrom: [
'src/**/*.{ts,tsx}'
],
mapCoverage: true
]
};
6 changes: 2 additions & 4 deletions packages/react-form-with-constraints/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module.exports = {
setupFiles: ['./src/SetupEnzyme.ts'],
setupFiles: ['./src/JestSetup.ts'],

transform: {
'^.+\\.tsx?$': 'ts-jest'
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js'],

mapCoverage: true
moduleFileExtensions: ['ts', 'tsx', 'js']
};

0 comments on commit 8ddcd64

Please sign in to comment.