-
Couldn't load subscription status.
- Fork 50
Open
Description
Currently, the ava/use-test allows naming the default import anyTest instead of test in TypeScript files:
In a TypeScript file (
.tsor.tsx) AVA can be assigned to a variable namedanyTestin order to define the types oft.context(see Typing 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:
import anyTest from 'ava';Renaming the file to foo.cts or foo.mts produces the following warning, though:
AVA should be imported as `test`.Metadata
Metadata
Assignees
Labels
No labels