We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ava/use-test
anyTest
.cts
.mts
Currently, the ava/use-test allows naming the default import anyTest instead of test in TypeScript files:
test
In a TypeScript file (.ts or .tsx) AVA can be assigned to a variable named anyTest in order to define the types of t.context (see Typing t.context).
.ts
.tsx
t.context
However, TS 4.7 introduced new file extensions, .cts and .mts, that are not recognized by this rule.
For example, the following import statement does not report any violations when placed in a file foo.ts:
foo.ts
import anyTest from 'ava';
Renaming the file to foo.cts or foo.mts produces the following warning, though:
foo.cts
foo.mts
AVA should be imported as `test`.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the
ava/use-test
allows naming the default importanyTest
instead oftest
in TypeScript files:However, TS 4.7 introduced new file extensions,
.cts
and.mts
, that are not recognized by this rule.For example, the following import statement does not report any violations when placed in a file
foo.ts
:Renaming the file to
foo.cts
orfoo.mts
produces the following warning, though:The text was updated successfully, but these errors were encountered: