Expect TypeScript 5.1 (or newer)
XO isn't ready for this but it works, just some warnings locally during npm install.
This commit is contained in:
parent
1c66194612
commit
e24cdb6eb8
4 changed files with 9 additions and 17 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ts-version: [~4.7, ~4.8, ~4.9, ~5.0]
|
||||
ts-version: [~5.1]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Translations: [Español](https://github.com/avajs/ava-docs/blob/main/es_ES/docs/
|
|||
|
||||
AVA comes bundled with a TypeScript definition file. This allows developers to leverage TypeScript for writing tests.
|
||||
|
||||
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition expects at least version 4.7.
|
||||
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition expects at least version 5.1.
|
||||
|
||||
## Enabling AVA's support for TypeScript test files
|
||||
|
||||
|
|
|
|||
20
package-lock.json
generated
20
package-lock.json
generated
|
|
@ -69,7 +69,7 @@
|
|||
"tap": "^16.3.4",
|
||||
"tempy": "^3.0.0",
|
||||
"tsd": "^0.28.1",
|
||||
"typescript": "^4.9.5",
|
||||
"typescript": "^5.1.6",
|
||||
"xo": "^0.54.2",
|
||||
"zen-observable": "^0.10.0"
|
||||
},
|
||||
|
|
@ -10823,16 +10823,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "4.9.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
||||
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
|
||||
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/unbox-primitive": {
|
||||
|
|
@ -12633,18 +12633,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/xo/node_modules/typescript": {
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
|
||||
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
"inBundle": true
|
||||
},
|
||||
"node_modules/xo/node_modules/yargs-parser": {
|
||||
"version": "21.1.1",
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
"tap": "^16.3.4",
|
||||
"tempy": "^3.0.0",
|
||||
"tsd": "^0.28.1",
|
||||
"typescript": "^4.9.5",
|
||||
"typescript": "^5.1.6",
|
||||
"xo": "^0.54.2",
|
||||
"zen-observable": "^0.10.0"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue