gohypergiant / standard-toolkit

The web "standard library" for the Accelint family of systems.
Apache License 2.0
0 stars 0 forks source link

Support vitest watch mode #71

Closed brandonjpierce closed 1 day ago

brandonjpierce commented 1 day ago

We currently run something similar to the following in each workspace package for the test command:

pnpm run vitest --run --dir src

The explicit --run flag prevents the --watch flag from working as it explicitly disables watch. The fix:

Update all packages/* to use the following for their test script command:

pnpm run vitest --dir=src

This way you can isolate to a package and enable watch mode for tests e.g.:

pnpm --filter=@accelint/math run test --watch