npm run types: check that all the types are correct and respected, and that Typescript can compile without errors
npm run lint: check that there is no syntax or styles errors (if there are any, you can corect them with npm run lint:fix). The legacy code is excluded from this test
npm run jest: test the components by running the *.test.tsx files.
Each test of component uses a snapshot, which sould be sync on Github : if the component has been changed, the test will fail because the snapshot will not be the same anymore.
To update the snapshot if they are changed volontarely, run npm run jest:update
Finally, to check all the tests at once, run npm test or npm run test.
Note
The tests on the github workflow is restricted to jest tests for the moment, because the lint and types tests do not pass
Description
Add 3 types of tests:
npm run types
: check that all the types are correct and respected, and that Typescript can compile without errorsnpm run lint
: check that there is no syntax or styles errors (if there are any, you can corect them withnpm run lint:fix
). The legacy code is excluded from this testnpm run jest
: test the components by running the*.test.tsx
files.npm run jest:update
Finally, to check all the tests at once, run
npm test
ornpm run test
.Note
The tests on the github workflow is restricted to
jest
tests for the moment, because the lint and types tests do not pass