Unverified Commit 6734ad3d authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

[backport] [ci] Pin typescript version in tests (#95619) (#95650)

parent 9dadfd69
...@@ -13,7 +13,6 @@ describe('Error overlay - RSC build errors', () => { ...@@ -13,7 +13,6 @@ describe('Error overlay - RSC build errors', () => {
'react-tweet': '^3.2.0', 'react-tweet': '^3.2.0',
'@mdx-js/react': '^2.3.0', '@mdx-js/react': '^2.3.0',
tailwindcss: '^3.2.6', tailwindcss: '^3.2.6',
typescript: 'latest',
'@types/react': '^18.0.28', '@types/react': '^18.0.28',
'@types/react-dom': '^18.0.10', '@types/react-dom': '^18.0.10',
'image-size': '^1.0.2', 'image-size': '^1.0.2',
......
...@@ -7,9 +7,7 @@ describe('useDefineForClassFields SWC option', () => { ...@@ -7,9 +7,7 @@ describe('useDefineForClassFields SWC option', () => {
files: join(__dirname, 'fixture'), files: join(__dirname, 'fixture'),
dependencies: { dependencies: {
mobx: '6.3.7', mobx: '6.3.7',
typescript: 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest',
'mobx-react': '7.2.1', 'mobx-react': '7.2.1',
}, },
}) })
......
...@@ -12,9 +12,7 @@ describe('correct tsconfig.json defaults', () => { ...@@ -12,9 +12,7 @@ describe('correct tsconfig.json defaults', () => {
}, },
skipStart: true, skipStart: true,
dependencies: { dependencies: {
typescript: 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest',
}, },
}) })
}) })
......
...@@ -36,9 +36,7 @@ describe('jsconfig-path-reloading', () => { ...@@ -36,9 +36,7 @@ describe('jsconfig-path-reloading', () => {
}), }),
}, },
dependencies: { dependencies: {
typescript: 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest',
}, },
}) })
......
...@@ -36,7 +36,7 @@ describe('tsconfig-path-reloading', () => { ...@@ -36,7 +36,7 @@ describe('tsconfig-path-reloading', () => {
}), }),
}, },
dependencies: { dependencies: {
typescript: 'latest', typescript: '6.0.3',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest', '@types/node': 'latest',
}, },
......
...@@ -9,9 +9,7 @@ describe('navigation between pages and app dir', () => { ...@@ -9,9 +9,7 @@ describe('navigation between pages and app dir', () => {
next = await createNext({ next = await createNext({
files: new FileRef(__dirname), files: new FileRef(__dirname),
dependencies: { dependencies: {
typescript: 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest',
}, },
}) })
}) })
......
...@@ -4,9 +4,7 @@ describe('redirects and rewrites', () => { ...@@ -4,9 +4,7 @@ describe('redirects and rewrites', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
dependencies: { dependencies: {
typescript: 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest',
}, },
}) })
......
...@@ -254,8 +254,8 @@ export class NextInstance { ...@@ -254,8 +254,8 @@ export class NextInstance {
'react-dom': reactVersion, 'react-dom': reactVersion,
'@types/react': '19.2.2', '@types/react': '19.2.2',
'@types/react-dom': '19.2.1', '@types/react-dom': '19.2.1',
typescript: 'latest', typescript: '6.0.3',
'@types/node': 'latest', '@types/node': '26.1.0',
...this.dependencies, ...this.dependencies,
...this.packageJson?.dependencies, ...this.packageJson?.dependencies,
} }
......
...@@ -11,9 +11,7 @@ describe('Does not override tsconfig moduleResolution field during build', () => ...@@ -11,9 +11,7 @@ describe('Does not override tsconfig moduleResolution field during build', () =>
pkg: new FileRef(join(__dirname, 'pkg')), pkg: new FileRef(join(__dirname, 'pkg')),
}, },
dependencies: { dependencies: {
typescript: 'latest',
'@types/react': 'latest', '@types/react': 'latest',
'@types/node': 'latest',
pkg: './pkg', pkg: './pkg',
}, },
}) })
......
...@@ -11,8 +11,6 @@ describe('TypeScript basic', () => { ...@@ -11,8 +11,6 @@ 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',
'@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