Unverified Commit 7397be77 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

test: pin typescript version to 4.7 (#39978)

Typescript published 4.8 and the ts tests are filling. Fix it by pining it to 4.7 temproraily 

x-ref: https://github.com/vercel/next.js/runs/8037717851?check_suite_focus=true#step:9:211
parent b02b2f70
...@@ -14,7 +14,7 @@ describe('correct tsconfig.json defaults', () => { ...@@ -14,7 +14,7 @@ describe('correct tsconfig.json defaults', () => {
}, },
skipStart: true, skipStart: true,
dependencies: { dependencies: {
typescript: 'latest', typescript: '4.7.4',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest', '@types/node': 'latest',
}, },
......
...@@ -35,7 +35,7 @@ describe('jsconfig-path-reloading', () => { ...@@ -35,7 +35,7 @@ describe('jsconfig-path-reloading', () => {
}), }),
}, },
dependencies: { dependencies: {
typescript: 'latest', typescript: '4.7.4',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest', '@types/node': 'latest',
}, },
......
...@@ -35,7 +35,7 @@ describe('tsconfig-path-reloading', () => { ...@@ -35,7 +35,7 @@ describe('tsconfig-path-reloading', () => {
}), }),
}, },
dependencies: { dependencies: {
typescript: 'latest', typescript: '4.7.4',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest', '@types/node': 'latest',
}, },
......
...@@ -19,7 +19,7 @@ describe('should set-up next', () => { ...@@ -19,7 +19,7 @@ describe('should set-up next', () => {
'next.config.js': new FileRef(join(appDir, 'next.config.js')), 'next.config.js': new FileRef(join(appDir, 'next.config.js')),
}, },
dependencies: { dependencies: {
typescript: 'latest', typescript: '4.7.4',
'@types/node': 'latest', '@types/node': 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/react-dom': 'latest', '@types/react-dom': 'latest',
......
...@@ -11,7 +11,7 @@ describe('TypeScript basic', () => { ...@@ -11,7 +11,7 @@ describe('TypeScript basic', () => {
files: new FileRef(path.join(__dirname, 'app')), files: new FileRef(path.join(__dirname, 'app')),
dependencies: { dependencies: {
'@next/bundle-analyzer': 'canary', '@next/bundle-analyzer': 'canary',
typescript: 'latest', typescript: '4.7.4',
'@types/node': 'latest', '@types/node': 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/react-dom': 'latest', '@types/react-dom': 'latest',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment