๐งช Test application to become familiar with Angular
Run npm install
to install the required dependencies.
On WSL, you also need to install and configure an X-server in order for Cypress to work.
Run npm start
for a dev server. The app will be served on http://localhost:4200/ng-app/
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run npm test
to run all unit tests with Jest.
๐ก Additionally,
npm run test:watch
starts Jest in watch mode, andnpm run test:coverage
reports code coverage.
Run npm run e2e
to start the dev server, then run all E2E tests with Cypress.
๐ก During development you can run
npm run e2e:open
to open Cypress in another window. It connects to the already running dev server and shows you test results as you edit the code.