wave
wave copied to clipboard
Make Jest the only test runner
We have a couple different test kinds which are currently run with a combination of bash scripts and jest. This includes the unit/snapshot tests for all component as well as the e2e fixture tests, but may also be expandable to future tests like visual regression testing. In order to make it easier to include all of these tests in the local development flow we should have a common interface through jest to run these tests with.
With this issue, we want to do the following:
- By default
npm test
should only run the unit tests - Executing
npm run test:all
should run all tests and is used in CI - Each jest project can be run individually with an npm script like
npm run test:unit
ornpm run test:screenshot
and so on
What needs to be done:
- Convert fixture tests to jest tests
- Create multi project config for jest
- Create config for unit tests and fixture tests
- Adapt CI script to run all tests concurrently
@snapsnapturtle should we close #6 if we want to convert them into jest tests? Is there any documentation that exists on how to do this?
Yes, that makes sense to me I guess. These are the stories I moved over from our internal Jira board, so they might need to be looked at again. Feel free to close it, using a single test runner is more advantageous.
I don't think I have permissions to close it though, but closing it makes sense to me too!