In jest one names a file thing.jest.ts
. You can then run jest thing.jest.ts
or point jest at a folder of test files eg jest some_folder/sub_folder
.
How do I do this with AVA?
Things that don't work:
- Can't use wildcards
$ ava /**/*.test.ts
✖ /**/*.test.ts does not exist.
- Can't directly point to a file... maybe typescript doesn't work
$ ava ./src/Derivations/Sources/__tests/Source.test.ts
- Can't run with ts-node
$ ts-node ./src/Derivations/Sources/__tests/Source.test.ts
Test files must be run with the AVA CLI:
$ ava src/Derivations/Sources/__tests/Source.test.ts