Skip to content

Commit 0e25160

Browse files
committed
Document how to configure with allowJS enabled
1 parent 4ec638c commit 0e25160

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ You can configure AVA to recognize additional file extensions. To add (partial
7575
}
7676
```
7777

78+
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.
79+
7880
See also AVA's [`extensions` option](https://github.com/avajs/ava/blob/master/docs/06-configuration.md#options).
7981

8082
† Note that the [*preserve* mode for JSX](https://www.typescriptlang.org/docs/handbook/jsx.html) is not (yet) supported.

0 commit comments

Comments
 (0)