question: can I run TS test scripts with AVA?

1
open
mesqueeb
mesqueeb
Posted 7 months ago

question: can I run TS test scripts with AVA? #2

Hey Egoist 👋🏻

I currently write AVA tests in TS and have AVA set up to run them directly via ts-node.

However, the set up is extremely complex for some reason and ts-node has weird quirks like I have to write import x from 'src/index.js' even though index.ts is a TS file, they force you to write .js for some reason. (related to es modules)

I was hoping if I could use tsno to run my AVA tests instead of ts-node.

Is this possible ?

egoist
egoist
Created 7 months ago

have you tried something like esbuild-register and see if it works?