mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-09-29 05:23:17 -07:00
Addresses issue #11 items unit testing, snapshot testing. Follows instructions from https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/ ; Adding typescript config, mocks, snapshot capabilities; initial test for j40footer and snapshot, readme update, test helper for intl plugin (#79)
This commit is contained in:
parent
a432a0d8c9
commit
ce7245b1a2
11 changed files with 3633 additions and 27 deletions
|
@ -20,6 +20,15 @@ To use:
|
|||
|
||||
The ruleset is simply the base ruleset + [Google](https://github.com/google/eslint-config-google).
|
||||
|
||||
## Testing
|
||||
|
||||
This project uses [jest](https://jestjs.io/) for unit testing, using `react-test-renderer` to output to text-based snapshot files.
|
||||
|
||||
To run tests: `npm test`
|
||||
To rebuild snapshots when you know a component has changed: `npm run test:update`
|
||||
|
||||
-
|
||||
|
||||
## Localization
|
||||
|
||||
### About
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue