Skip to content

Commit 21b94db

Browse files
authoredSep 22, 2022
fix: use correct typings for config:init command (#3825)
1 parent 54b0682 commit 21b94db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/cli/cli.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Jest configuration written to "${normalize('/foo/bar/jest.config.js')}".
135135
expect(fs.writeFileSync.mock.calls).toEqual([
136136
[
137137
normalize('/foo/bar/jest.config.js'),
138-
`/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
138+
`/** @type {import('ts-jest').JestConfigWithTsJest} */
139139
module.exports = {
140140
preset: 'ts-jest',
141141
testEnvironment: 'node',
@@ -159,7 +159,7 @@ Jest configuration written to "${normalize('/foo/bar/jest.config.foo.js')}".
159159
normalize('/foo/bar/jest.config.foo.js'),
160160
`const { jsWithTs: tsjPreset } = require('ts-jest/presets');
161161
162-
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
162+
/** @type {import('ts-jest').JestConfigWithTsJest} */
163163
module.exports = {
164164
...tsjPreset,
165165
globals: {

‎src/cli/config/init.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const run: CliCommand = async (args: CliCommandArgs /* , logger: Logger *
8989
if (!jestPreset) {
9090
content.push(`${preset.jsImport('tsjPreset')};`, '')
9191
}
92-
content.push(`/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */`)
92+
content.push(`/** @type {import('ts-jest').JestConfigWithTsJest} */`)
9393
content.push('module.exports = {')
9494
if (jestPreset) {
9595
content.push(` preset: '${preset.name}',`)

0 commit comments

Comments
 (0)
Please sign in to comment.