You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,11 @@
1
1
# @ava/typescript
2
2
3
-
Adds [TypeScript](https://www.typescriptlang.org/) support to [AVA 4](https://avajs.dev).
3
+
Adds [TypeScript](https://www.typescriptlang.org/) support to [AVA](https://avajs.dev).
4
4
5
5
This is designed to work for projects that precompile TypeScript. It allows AVA to load the compiled JavaScript, while configuring AVA to treat the TypeScript files as test files.
6
6
7
7
In other words, say you have a test file at `src/test.ts`. You've configured TypeScript to output to `build/`. Using `@ava/typescript` you can run the test using `npx ava src/test.ts`.
8
8
9
-
## For AVA 3 users
10
-
11
-
Use version 2:
12
-
13
-
```console
14
-
npm install --save-dev @ava/typescript@2
15
-
```
16
-
17
-
Note that v2 does not support ES modules. This requires v3 and AVA 4.
0 commit comments