[jest] add base config
Background / User story
This is the base of the jest unit test changes. One small file should be fully tested with coverage showing as a proof-of-concept of the iterative nature of the change. This blocks all other tickets in this epic and once this is ready, the config is set, all other tickets should be able to be done in parallel
What to change
- Design: N/A
- Research: N/A
- Spec: N/A
- Legal: N/A
-
Development:
npm i -D jest babel-jest @babel/core @babel/preset-env @babel/preset-typescript jest-environment-jsdom @types/jest
- babel-config.js
- jest.config.js
-
./scripts/printCoverageReportLink.js
- Note: this is the scripts directory. A wink toward future reorganization. The actual placement of this script is flexible but should be wherever scripts WILL be.
- Add
"test:unit": "jest && npm run test:unit:printCoverageLink"
to package.json scripts - Add
"test:unit:printCoverageLink": "node ./scripts/printCoverageReportLink.js"
to package.json scripts
Hints for testers
N/A
Hints for translators
N/A
Edited by Sadie Braun