Skip to content

Commit e24cdb6

Browse files
committed
Expect TypeScript 5.1 (or newer)
XO isn't ready for this but it works, just some warnings locally during npm install.
1 parent 1c66194 commit e24cdb6

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
strategy:
4343
matrix:
44-
ts-version: [~4.7, ~4.8, ~4.9, ~5.0]
44+
ts-version: [~5.1]
4545
steps:
4646
- uses: actions/checkout@v3
4747
- uses: actions/setup-node@v3

docs/recipes/typescript.md

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

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

7-
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition expects at least version 4.7.
7+
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition expects at least version 5.1.
88

99
## Enabling AVA's support for TypeScript test files
1010

package-lock.json

Lines changed: 6 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"tap": "^16.3.4",
138138
"tempy": "^3.0.0",
139139
"tsd": "^0.28.1",
140-
"typescript": "^4.9.5",
140+
"typescript": "^5.1.6",
141141
"xo": "^0.54.2",
142142
"zen-observable": "^0.10.0"
143143
},

0 commit comments

Comments
 (0)