To execute, set the EXAMPLE
environment variable to the directory name
you want to test (subdirectory of examples
) and call yarn test
from
the tests
directory.
EXAMPLE=rails yarn test
EXAMPLE=rails yarn test scenarios/users.test.ts
For watch file and only execute a single file on save:
EXAMPLE=rails yarn watch --watchAll
EXAMPLE=rails yarn watch scenarios/users.test.ts