uvu: Still can’t run TS and ESM
Thanks for https://github.com/lukeed/uvu/pull/143 changes.
But I still can’t run test. Repo.
$ npx tsm node_modules/uvu/bin.js test **/*.test.ts
(node:19956) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Total: 0
Passed: 0
Skipped: 0
Duration: 0.10ms
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23 (17 by maintainers)
Awesome it was fixed 😃
I’ve forgotten to call run() before too so it’s something that’s on mind when using
uvu
. It was a bit strange at first since other test runners have magical abstraction, but I’ve come to really appreciate the explicit nature of uvu, especially because tests files are self-contained.Oh, haha, thank you @maxmilton and @ViZhe for helping! I was so focused on the paths to tsm & uvu bins that I didn’t even notice the uvu arguments 😅
Glad you were able to get it sorted out @ai
Thanks. Fixed.
@ai https://github.com/lukeed/uvu/blob/master/docs/cli.md#matching
Unlike other test runners, uvu intentionally does not rely on glob patterns.
so
tsm node_modules/uvu/bin.js test index.test.ts
ortsm node_modules/uvu/bin.js test \\.test\\.ts$
will do the job 😃