Tests can be run through the test running script: npm test -- <command>.
View available commands with: npm test -- --help.
To run unit tests:
npm test -- unit
To run e2e tests against already running fred and rari servers:
npm test -- e2e
To run e2e tests and bring up a fred dev server and rari server:
npm test -- e2e --fred dev --rari
To run only some files:
npm test -- e2e --spec test/specs/playground.e2e.js
To exclude files:
npm test -- e2e --exclude test/specs/layout.e2e.js