Skip to content

Commit

Permalink
tests configuration update
Browse files Browse the repository at this point in the history
  • Loading branch information
storrisi committed Nov 12, 2019
1 parent 5632c51 commit 542bfff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
moduleNameMapper: {
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js'
},
setupFilesAfterEnv: ['<rootDir>/src/setupTests.js'],
transform: {
'^.+\\.(js|jsx)?$': 'babel-jest',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"start:local-api": "env-cmd --fallback ./.env.localhost npm run build-scripts",
"start:prod-api": "env-cmd --fallback ./.env.production npm run build-scripts",
"build": "env-cmd --fallback ./.env.production npm run build-css && npm run copy-monaco && react-scripts --max_old_space_size=4096 build",
"test": "eslint --fix src && react-scripts test --env=jsdom --watchAll=false --coverage",
"test": "jest --no-cache -w 2 --watchAll=false --coverage",
"test:unit": "jest -c jest.config.unit.js",
"test:integration": "jest -c jest.config.integration.js",
"eject": "react-scripts eject",
Expand Down
1 change: 1 addition & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'regenerator-runtime/runtime'
import { configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import 'jest-enzyme'
Expand Down

0 comments on commit 542bfff

Please sign in to comment.