-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
@FallingSnow shared how to (experimentally) configure AVA and Node.js so that AVA can load TypeScript-based ESM files:
"ava": {
"extensions": {
"ts": "module"
},
"nonSemVerExperiments": {
"configurableModuleFormat": true
},
"nodeArguments": [
"--loader=ts-node/esm",
"--experimental-specifier-resolution=node"
],
"files": [
"test/**/*.spec.ts"
]
}
It'd be great to add this to our TypeScript recipe.
ejunebug, raoulmillais, thasmo, jerrygreen, mike-marcacci and 10 more