January 2020
Intermediate to advanced
428 pages
10h 34m
English
Client-side unit tests and end-to-end tests are available under src/test/javascript.
These tests can be run using the available npm scripts or Gradle tasks.
Let's run tests using npm scripts. First, let's run Jest unit tests. In the Terminal, execute the following command. You can also use yarn instead of npm if you choose that during generation:
> npm test
This should produce a detailed coverage report, followed by output similar to the following:
Test Suites: 24 passed, 24 totalTests: 95 passed, 95 totalSnapshots: 0 totalTime: 19.303sRan all test suites.
Now, let's run Protractor end-to-end tests using the npm script. To run e2e tests, we need to make ...
Read now
Unlock full access