Skip to content

Commit 656dda7

Browse files
committed
build: bump typescript to latest
1 parent 04a12d7 commit 656dda7

22 files changed

+195
-106
lines changed

e2e/enum/__tests__/enum.spec.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import { BarEnum } from '../src/bar-constant'
2-
import { FooEnum } from '../src/foo-constant'
32

43
const getOne = (): string => BarEnum.one
5-
const getTwo = (): string => FooEnum.two
64

75
describe('enum', () => {
86
it('should pass', () => {
97
expect(getOne()).toBe('ONE')
10-
expect(getTwo()).toBe('TWO')
118
})
129
})

e2e/enum/src/foo-constant.cjs

-7
This file was deleted.

e2e/enum/src/foo-constant.d.ts

-3
This file was deleted.

e2e/enum/src/foo-constant.mjs

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
describe('transform js', () => {
2-
it('should process mjs file', async () => {
3-
const { default: importedStateful } = await import('../src/stateful.mjs')
4-
5-
expect(importedStateful()).toBe(1)
6-
})
1+
import inc from '../src/stateful'
72

8-
it('should process cjs file', async () => {
9-
const { default: importedStateful } = await import('../src/stateful.cjs')
10-
11-
expect(importedStateful()).toBe(1)
3+
describe('transform js', () => {
4+
it('should process js file', () => {
5+
expect(inc()).toBe(1)
126
})
137
})

e2e/transform-js/jest-compiler-cjs.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { type JestConfigWithTsJest, ESM_TS_JS_TRANSFORM_PATTERN } from 'ts-jest'
1+
import { type JestConfigWithTsJest, TS_JS_TRANSFORM_PATTERN } from 'ts-jest'
22

33
export default {
44
displayName: 'transform-js-compiler-cjs',
55
transform: {
6-
[ESM_TS_JS_TRANSFORM_PATTERN]: [
6+
[TS_JS_TRANSFORM_PATTERN]: [
77
'ts-jest',
88
{
99
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',

e2e/transform-js/jest-transpiler-cjs.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { type JestConfigWithTsJest, ESM_TS_JS_TRANSFORM_PATTERN } from 'ts-jest'
1+
import { type JestConfigWithTsJest, TS_JS_TRANSFORM_PATTERN } from 'ts-jest'
22

33
export default {
44
displayName: 'transform-js-transpiler-cjs',
55
transform: {
6-
[ESM_TS_JS_TRANSFORM_PATTERN]: [
6+
[TS_JS_TRANSFORM_PATTERN]: [
77
'ts-jest',
88
{
99
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',

e2e/transform-js/src/stateful.cjs

-7
This file was deleted.
File renamed without changes.

examples/js-with-babel/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"cross-env": "^7.0.3",
1717
"jest": "^29.7.0",
1818
"ts-jest": "^29.3.0",
19-
"typescript": "~5.5.4"
19+
"typescript": "~5.8.2"
2020
}
2121
}

examples/js-with-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"lodash-es": "^4.17.21",
1616
"jest": "^29.7.0",
1717
"ts-jest": "^29.3.0",
18-
"typescript": "~5.5.4"
18+
"typescript": "~5.8.2"
1919
}
2020
}

examples/monorepo-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"cross-env": "^7.0.3",
1919
"jest": "^29.7.0",
2020
"ts-jest": "^29.3.0",
21-
"typescript": "~5.5.4"
21+
"typescript": "~5.8.2"
2222
}
2323
}

examples/package-lock.json

+121-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/react-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"jest": "^29.7.0",
3030
"jest-environment-jsdom": "^29.7.0",
3131
"ts-jest": "^29.3.0",
32-
"typescript": "^5.5.4",
32+
"typescript": "~5.8.2",
3333
"vite": "^6.2.3"
3434
}
3535
}

examples/ts-only/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"cross-env": "^7.0.3",
1414
"jest": "^29.7.0",
1515
"ts-jest": "^29.3.0",
16-
"typescript": "~5.5.4"
16+
"typescript": "~5.8.2"
1717
}
1818
}

jest-e2e.config.cjs renamed to jest-e2e-cjs.config.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
const path = require('path')
1+
import path from 'node:path'
22

3-
const { sync: spawnSync } = require('execa')
3+
import { sync as spawnSync } from 'execa'
4+
import type { Config } from 'jest'
45

5-
const { createBundle } = require('./scripts/lib/bundle')
6+
// @ts-expect-error no type definition
7+
import { createBundle } from './scripts/lib/bundle'
68

79
console.log('Install dependencies for all e2e test suites')
810

@@ -17,7 +19,6 @@ spawnSync('npm', ['install', '--no-package-lock', '--no-shrinkwrap', '--no-save'
1719
cwd: e2eFolderPath,
1820
})
1921

20-
/** @type {import('jest').Config} */
21-
module.exports = {
22+
export default {
2223
projects: ['e2e/**/jest-transpiler-cjs.config.ts', 'e2e/**/jest-compiler-cjs.config.ts'],
23-
}
24+
} satisfies Config

jest-e2e.config.mjs renamed to jest-e2e-esm.config.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import path from 'node:path'
22

33
import { sync as spawnSync } from 'execa'
4+
import type { Config } from 'jest'
45

6+
// @ts-expect-error no type definition
57
import { createBundle } from './scripts/lib/bundle.js'
68

79
console.log('Install dependencies for all e2e test suites')
@@ -17,7 +19,6 @@ spawnSync('npm', ['install', '--no-package-lock', '--no-shrinkwrap', '--no-save'
1719
cwd: e2eFolderPath,
1820
})
1921

20-
/** @type {import('jest').Config} */
2122
export default {
2223
projects: ['e2e/**/jest-transpiler-esm.config.ts', 'e2e/**/jest-compiler-esm.config.ts'],
23-
}
24+
} satisfies Config

0 commit comments

Comments
 (0)