This project uses Lerna to manage its packages.
I recommend yarn for development.
- Run
yarn - Run
yarn bootstrap(This will install all dependencies, build the packages and links any cross-dependencies. It also allows packages to import each other using their published package names.) - Run
yarn test:unitto run the unit tests. - Run
yarn test:packagesto run the "test" scripts inside all packages. - Run
yarn test:integration:buildto build the integration test files. - Run
yarn test:integrationto run the integration tests in headless Chrome.
Unit tests are using Jest, while integration tests are using Karma. (And Sauce Labs in the CI to run in multiple browsers.)
During development, you can run:
yarn test:unit:watchand,KARMA_CHROME=true yarn test:integration --singleRun=false
to run the tests on code changes.
Note that you'll also need to run the build in watch mode in the package you're working on, as integration tests use the built code.)