alsatian-cli-function
Exports a function to run a provided file using alsatian.
Why?
So you can easily turn each of your alsatian test files into an executable script that doesn't depend on the alsatian
CLI. You can just run it with node path/to/your/file.js
or ts-node path/to/your/file.ts
.
YourTest.ts:
// no globals and typing support out of the box with intellisense;; if require.main === module
Then: ts-node YourTest.ts
to run the tests in that file.
Gratitudes
Thank you to jamesadarich and other contributors for working on alsatian.