Skip to content

Commit 763c6d5

Browse files
committed
build: bump typescript to latest
1 parent dc1c589 commit 763c6d5

23 files changed

+236
-251
lines changed

e2e/enum/__tests__/enum.spec.ts

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

Lines changed: 0 additions & 3 deletions
This file was deleted.

e2e/enum/src/foo-constant.mjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

e2e/package-lock.json

Lines changed: 41 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 10 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)