Skip to content

Commit 68ce4b8

Browse files
authored
Update tsconfig.json docs link in the TS recipe
1 parent 837b0dd commit 68ce4b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/recipes/typescript.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Translations: [Español](https://github.com/avajs/ava-docs/blob/master/es_ES/doc
44

55
AVA comes bundled with a TypeScript definition file. This allows developers to leverage TypeScript for writing tests.
66

7+
78
## Setup
89

910
First install [TypeScript](https://github.com/Microsoft/TypeScript) (if you already have it installed, make sure you use version 2.1 or greater).
@@ -12,7 +13,7 @@ First install [TypeScript](https://github.com/Microsoft/TypeScript) (if you alre
1213
$ npm install --save-dev typescript
1314
```
1415

15-
Create a [`tsconfig.json`](https://github.com/Microsoft/TypeScript/wiki/tsconfig.json) file. This file specifies the compiler options required to compile the project or the test file.
16+
Create a [`tsconfig.json`](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html) file. This file specifies the compiler options required to compile the project or the test file.
1617

1718
```json
1819
{
@@ -49,6 +50,7 @@ test(async (t) => {
4950
});
5051
```
5152

53+
5254
## Working with [`context`](https://github.com/avajs/ava#test-context)
5355

5456
By default, the type of `t.context` will be [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any). AVA exposes an interface `RegisterContextual<T>` which you can use to apply your own type to `t.context`. This can help you catch errors at compile-time:
@@ -79,6 +81,7 @@ test('an actual test', t => {
7981
});
8082
```
8183

84+
8285
## Execute the tests
8386

8487
```

0 commit comments

Comments
 (0)