Fable bindings for Jest.
-
Install / update template
dotnet new -i Fable.Template.Jest
-
Create project
dotnet new fable-jest -n my-test-app -lang F#
-
Run the tests
dotnet fable npm-run test
-
Run the tests and output code coverage
dotnet fable npm-run coverage
-
Run the tests in watch mode:
- In one terminal
dotnet fable start
In a second terminalnpm run test-watch
- This will allow you to run all, or just a subset of tests, and will re-test the changed files on save.
- In one terminal
Refer to the template readme for more info.