Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jest): bump to 24 #957

Merged
merged 12 commits into from
Feb 18, 2019
2 changes: 1 addition & 1 deletion e2e/__cases__/deep/src/Button/click.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as mod from './mod'
import mod from './mod'

export function click(foo: string) {
return `clicked ${mod(foo)}`
Expand Down
2 changes: 2 additions & 0 deletions e2e/__cases__/deep/src/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"strict": true
}
}
2 changes: 1 addition & 1 deletion e2e/__cases__/module-kinds/ts-jest-tools.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as presets from 'ts-jest/presets'
import * as utils from 'ts-jest/utils'

test('presets', () => {
const presetKeys = ['transform', 'testMatch', 'moduleFileExtensions']
const presetKeys = ['transform']
expect(Object.keys(presets.defaults)).toEqual(presetKeys)
expect(presets.defaults).toEqual(require('ts-jest/presets/default/jest-preset'))
expect(presets.defaults).toEqual(require('ts-jest/jest-preset'))
Expand Down
17 changes: 2 additions & 15 deletions e2e/__helpers__/templates.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
export enum PackageSets {
default = 'default',
babel6 = 'with-babel-6',
babel7 = 'with-babel-7',
jest22 = 'with-jest-22',
typescript2_7 = 'with-typescript-2-7',
// invalid
unsupportedVersion = 'with-unsupported-version',
}
export const allValidPackageSets = [
PackageSets.default,
PackageSets.babel6,
PackageSets.babel7,
PackageSets.jest22,
PackageSets.typescript2_7,
]
export const allPackageSetsWithPreset = [
PackageSets.default,
PackageSets.babel6,
PackageSets.babel7,
PackageSets.typescript2_7,
]
export const allValidPackageSets = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7]
export const allPackageSetsWithPreset = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7]
Loading