This is a template for a tests/
directory in your Gren project.
Copy these files to a tests/
folder in the root of your Gren project.
An easy way to do that is with degit:
degit blaix/gren-template-tests tests
Then write your tests in tests/src/Main.gren
Assumes gren
and node
are available on your PATH:
tests/run.sh
If you have entr available on your PATH, you can automatically run tests when gren files change:
tests/watch.sh