You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shouldn't this work? or will ava only run precompiled tests
Calebs-MBP:aurelia-propertysource calebcushing$ npx ava --node-arguments="--require ts-node/register --require=tsconfig-paths/register" src/__
tests__
✖ Couldn’t find any files to test
Calebs-MBP:aurelia-propertysource calebcushing$ cat src/__tests__/inject.test.ts
Calebs-MBP:aurelia-propertysource calebcushing$ npx ava test/**/*.ts
✖ Timed out while running tests
✖ No tests found in test/inject.spec.ts
Calebs-MBP:aurelia-propertysource calebcushing$ npx ava
⠙ 2020-04-09T12:49:58.304Z [WRN] ""
1 test failed
test
test/inject.spec.ts:20
19:
20: t.is(t.context.get(Foo), undefined);
21: });
Difference:
- Foo {}
+ undefined
The text was updated successfully, but these errors were encountered:
After installing @ava/typescript, setting "typescript": true in the AVA configuration enables TypeScript support. You shouldn't change the extensions.
At the moment, this only works with pre-compiled files (sources & tests). If that's your jam you won't need ts-node/register. This has been working great for my work projects.
(I'm closing this issue for housekeeping purposes, but let's keep the conversation going.)
shouldn't this work? or will ava only run precompiled tests
feels like the documentation needs work
UPDATE
ok, this actually works...
except... WAT
The text was updated successfully, but these errors were encountered: