-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ESM test files #5
Comments
Is this why I'm getting this error?
|
Yes, right now the files are loaded using |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@novemberborn Just so we're on the same page, this issue is about supporting projects that use AVA with |
@sindresorhus Yes. |
Having looked at the logic here and in AVA itself, I think the way to do this is first to remove this check: Lines 162 to 166 in 27650db
Then instead of immediately using the Line 171 in 27650db
We currently always rewrite to We then need to document that, since TypeScript compiles to JS files, you need to configure either your |
avajs/ava#2882 reorders it so that the provider has first dibs. |
Once avajs/ava#2345 has shipped it should be possible to configure AVA to load
ts
files as ES modules.This means we need to import them, instead of using require.
We should also explore if there may be a way to configure this within the
typescript
configuration.The text was updated successfully, but these errors were encountered: