Document how to configure with allowJS enabled
This commit is contained in:
parent
4ec638c4d0
commit
0e2516055a
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ You can configure AVA to recognize additional file extensions. To add (partial
|
|||
}
|
||||
```
|
||||
|
||||
If you use the [`allowJs` TypeScript option](https://www.typescriptlang.org/tsconfig/allowJs.html) you'll have to specify the `js`, `cjs` and `mjs` extensions for them to be rewritten.
|
||||
|
||||
See also AVA's [`extensions` option](https://github.com/avajs/ava/blob/master/docs/06-configuration.md#options).
|
||||
|
||||
† Note that the [*preserve* mode for JSX](https://www.typescriptlang.org/docs/handbook/jsx.html) is not (yet) supported.
|
||||
|
|
|
|||
Loading…
Reference in a new issue