feat: migrate unit tests to Jest (#6353)
* config(jest): updated setup * config(jest): update testMatch to include jsx files * config(jest): add transformIgnorePatterns * config(jest): update ignore files that do not work in jest yet * config: add test:unit-jest to test script * fix(jest): lint with eslint-plugin-jest * refactor(jest): move unit test directory * refactor(mocha): restore mocha tests that fail in jest * docs(jest): update helpful scripts with test:unit-jest
This commit is contained in:
@@ -28,6 +28,7 @@ Script name | Description
|
||||
--- | ---
|
||||
`test` | Run unit tests in Node, run Cypress end-to-end tests, and run ESLint in errors-only mode.
|
||||
`just-test-in-node` | Run Mocha unit tests in Node.
|
||||
`test:unit-jest` | Run Jest unit tests in Node.
|
||||
`e2e` | Run end-to-end tests (requires JDK and Selenium).
|
||||
`e2e-cypress` | Run end-to-end browser tests with Cypress.
|
||||
`dev-e2e-cypress` | Dev mode, open Cypress runner and manually select tests to run.
|
||||
|
||||
Reference in New Issue
Block a user