Skip to content

Commit 999f889

Browse files
committedFeb 15, 2019
fix: module tests and some snapshots
1 parent 8372b5e commit 999f889

File tree

8 files changed

+220
-108
lines changed

8 files changed

+220
-108
lines changed
 

‎e2e/__cases__/deep/src/Button/click.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as mod from './mod'
1+
import mod from './mod'
22

33
export function click(foo: string) {
44
return `clicked ${mod(foo)}`

‎e2e/__cases__/deep/src/tsconfig.base.json

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"forceConsistentCasingInFileNames": true,
66
"experimentalDecorators": true,
77
"emitDecoratorMetadata": true,
8+
"allowSyntheticDefaultImports": true,
9+
"esModuleInterop": true,
810
"strict": true
911
}
1012
}

‎e2e/__cases__/module-kinds/ts-jest-tools.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as presets from 'ts-jest/presets'
33
import * as utils from 'ts-jest/utils'
44

55
test('presets', () => {
6-
const presetKeys = ['transform', 'testMatch', 'moduleFileExtensions']
6+
const presetKeys = ['transform']
77
expect(Object.keys(presets.defaults)).toEqual(presetKeys)
88
expect(presets.defaults).toEqual(require('ts-jest/presets/default/jest-preset'))
99
expect(presets.defaults).toEqual(require('ts-jest/jest-preset'))

‎e2e/__tests__/__snapshots__/coverage.test.ts.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ exports[`using template "default" should report coverages 1`] = `
77
----------|----------|----------|----------|----------|-------------------|
88
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
99
----------|----------|----------|----------|----------|-------------------|
10-
All files | 83.33 | 100 | 66.67 | 80 | |
11-
Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 |
10+
All files | 80 | 100 | 66.67 | 75 | |
11+
Hello.ts | 80 | 100 | 66.67 | 75 | 5 |
1212
----------|----------|----------|----------|----------|-------------------|
1313
===[ STDERR ]===================================================================
1414
PASS ./Hello.spec.ts
@@ -99,8 +99,8 @@ exports[`using template "with-typescript-2-7" should report coverages 1`] = `
9999
----------|----------|----------|----------|----------|-------------------|
100100
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
101101
----------|----------|----------|----------|----------|-------------------|
102-
All files | 83.33 | 100 | 66.67 | 80 | |
103-
Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 |
102+
All files | 80 | 100 | 66.67 | 75 | |
103+
Hello.ts | 80 | 100 | 66.67 | 75 | 5 |
104104
----------|----------|----------|----------|----------|-------------------|
105105
===[ STDERR ]===================================================================
106106
PASS ./Hello.spec.ts

‎e2e/__tests__/__snapshots__/deep-path.test.ts.snap

+3-18
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ exports[`Deep paths test should pass using template "default": output 1`] = `
3636
√ npm -s run test
3737
↳ exit code: 0
3838
===[ STDOUT ]===================================================================
39-
=============================== Coverage summary ===============================
40-
Statements : 100% ( 6/6 )
41-
Branches : 100% ( 0/0 )
42-
Functions : 100% ( 2/2 )
43-
Lines : 100% ( 6/6 )
44-
================================================================================
39+
4540
===[ STDERR ]===================================================================
4641
PASS Button/click.test.ts
4742
√ button should click!
@@ -144,12 +139,7 @@ exports[`Deep paths test should pass using template "with-babel-7": output 1`] =
144139
√ npm -s run test
145140
↳ exit code: 0
146141
===[ STDOUT ]===================================================================
147-
=============================== Coverage summary ===============================
148-
Statements : 100% ( 6/6 )
149-
Branches : 100% ( 0/0 )
150-
Functions : 100% ( 2/2 )
151-
Lines : 100% ( 6/6 )
152-
================================================================================
142+
153143
===[ STDERR ]===================================================================
154144
PASS Button/click.test.ts
155145
√ button should click!
@@ -252,12 +242,7 @@ exports[`Deep paths test should pass using template "with-typescript-2-7": outpu
252242
√ npm -s run test
253243
↳ exit code: 0
254244
===[ STDOUT ]===================================================================
255-
=============================== Coverage summary ===============================
256-
Statements : 100% ( 6/6 )
257-
Branches : 100% ( 0/0 )
258-
Functions : 100% ( 2/2 )
259-
Lines : 100% ( 6/6 )
260-
================================================================================
245+
261246
===[ STDERR ]===================================================================
262247
PASS Button/click.test.ts
263248
√ button should click!

‎e2e/__tests__/__snapshots__/logger.test.ts.snap

+3-4
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ Array [
9797
"[level:20] backporting config",
9898
"[level:20] normalized jest config",
9999
"[level:20] normalized ts-jest config",
100-
"[level:20] loaded module babel-core",
101-
"[level:20] patching babel-core",
102-
"[level:20] checking version of babel-core: OK",
100+
"[level:20] loaded module @babel/core",
101+
"[level:20] patching @babel/core",
102+
"[level:20] checking version of @babel/core: OK",
103103
"[level:20] normalized babel config",
104104
"[level:20] loaded module typescript",
105105
"[level:20] patching typescript",
@@ -108,7 +108,6 @@ Array [
108108
"[level:20] normalized typescript config",
109109
"[level:20] processing <cwd>/Hello.spec.ts",
110110
"[level:20] creating babel-jest transformer",
111-
"[level:20] loaded module babel-core",
112111
"[level:20] loaded module babel-jest",
113112
"[level:20] patching babel-jest",
114113
"[level:20] checking version of babel-jest: OK",

‎package-lock.json

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

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-jest",
3-
"version": "23.10.5",
3+
"version": "24.0.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"bin": "cli.js",

0 commit comments

Comments
 (0)
Please sign in to comment.