Skip to content

Commit ede8a20

Browse files
authoredJul 25, 2021
fix(cli): fix config:init genarate invalid type comment (#2773)
Closes #2772
1 parent 0483e55 commit ede8a20

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/dist/types').InitialOptionsTsJest} */
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/dist/types').InitialOptionsTsJest} */
163163
module.exports = {
164164
...tsjPreset,
165165
globals: {

‎src/cli/config/init.ts

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

0 commit comments

Comments
 (0)
Please sign in to comment.