Add unit and integration jest.config files
**Why?** To write [FE integration tests][1], we will need to have two related but different environments. The best way to do this is with two configs and a base config. [1]: https://docs.gitlab.com/ee/development/testing_guide/testing_levels.html#frontend-integration-tests
Showing
jest.config.base.js
0 → 100644
jest.config.integration.js
0 → 100644
jest.config.js
deleted
100644 → 0
jest.config.unit.js
0 → 100644
... | ... | @@ -10,7 +10,7 @@ |
"eslint-report": "eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html --no-inline-config .", | ||
"file-coverage": "scripts/frontend/file_test_coverage.js", | ||
"prejest": "yarn check-dependencies", | ||
"jest": "jest", | ||
"jest": "jest --config jest.config.unit.js", | ||
"jest-debug": "node --inspect-brk node_modules/.bin/jest --runInBand", | ||
"jsdoc": "jsdoc -c config/jsdocs.config.js", | ||
"prekarma": "yarn check-dependencies", | ||
... | ... |
Please register or sign in to comment