-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test harness with jest #112
Conversation
* Adds jest.js as a testing library * Run with `npm run test` * Purposefully fails. To be resolved in next commit.
Going to convert to typescript as per @tomvandig's request. |
cce2a43
to
c8ab2cf
Compare
* Adds ts-jest for easy management of Typescript test specs. https://github.com/kulshekhar/ts-jest * Rewrite initial test in ts.
c8ab2cf
to
3af93a2
Compare
92e9a9d
to
7e6f685
Compare
* Just in case other files or dependencies are suffixed with .spec.js|ts or .test.js|ts
7e6f685
to
e222bf5
Compare
|
I think this is a good start to testing on the Typescript/Javascript side of the interface. I'd be curious to integrate this command The process uncovered a couple of bugs already, which I took the liberty to fix. :-) One cavaet we should document once more tests are added is this requires a full build in the dist folder. |
Proposing to create a node-based test harness using the popular jest library. This could be used to enable a few workflows:
*.ifc
files representing import challenges.This PR adds
jest
to the development dependencies and a new build action,test
, to be executed withnpm run test
. Individual tests can be singled out with jest's features (regex, filename, etc.). In the future, we could addtest:unit
,test:e2e
, etc. commands to single out test types.It also proposes a fix to a bug uncovered with the included test.