A blog by Jeffrey | (@jefiozie)

How to build a JamStack app with Angular Scully and Prisma

Today I upgraded one of our application to the most recent version NX. The upgrade itself was challenging as we are on a older version of NX. But after a couple of hours fixing some problems we where running on version 7.1.1.

When using the old way of running the test we could use to following command to run all tests:

$ npm run testor$ yarn test

After the upgrade this didn’t work anymore. Looking at issue #514 made some things clear. Below I have listed some example that where documented by Viktor Savkin

  • Running one project
    $ ng test myproject
  • Run all projects using affected:*, like this:
    $ yarn affected:test --files=package.json
  • Test only that what is affected by your change:
    $ yarn affected:test --base=master --head=HEAD
  • Doing the same in parallel:
    $ yarn affected:test --base=master --head=HEAD --parallel