Open
Description
Is your feature request related to a problem? Please describe.
I can't get Ava to work with Typescript and Nuxt. It's very weird, but my project works npm run dev
is all fine, but then if I type npm run test
with ava not only do I get an error in the test about my types, but also when I run npm run dev
from this point on it stops working up until I remove package-lock.json and node_modules!
I believe (before I migrated to 2.11) on 2.0.0 I had a different problem but not this one though.
My ava configuration that I got from somewhere a year ago:
"ava": {
"compileEnhancements": false,
"extensions": [
"ts"
],
"extensions": ["ts"],
"files": [
"**/*.test.ts"
],
"sources": [
"src/**/*"
],
"require": [
"esm",
"ts-node/register"
],
"verbose": true
},
Describe the solution you'd like
An example how to work with testing in Typescript on Nuxt 2.9+