@@ -58,9 +58,9 @@ describe('when `Config` type is imported from "@jest/types"', () => {
58
58
writeFiles ( DIR , {
59
59
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
60
60
'jest.config.cts' : `
61
- /** @ type {import( '@jest/types').Config} */
62
- const config: Config.InitialOptions = {displayName: 'ts-object-config', verbose: true};
63
- export default config;
61
+ import type {Config} from '@jest/types';
62
+ const config: Config.InitialOptions = {displayName: 'ts-object-config', verbose: true};
63
+ export default config;
64
64
` ,
65
65
'package.json' : '{}' ,
66
66
} ) ;
@@ -76,7 +76,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
76
76
writeFiles ( DIR , {
77
77
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
78
78
'jest.config.cts' : `
79
- /** @ type {import( '@jest/types').Config} */
79
+ import type {Config} from '@jest/types';
80
80
async function getVerbose() {return true;}
81
81
export default async (): Promise<Config.InitialOptions> => {
82
82
const verbose: Config.InitialOptions['verbose'] = await getVerbose();
@@ -135,7 +135,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
135
135
writeFiles ( DIR , {
136
136
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
137
137
'jest.config.cts' : `
138
- /** @ type {import( '@jest/types').Config} */
138
+ import type {Config} from '@jest/types';
139
139
const config: Config.InitialOptions = {testTimeout: '10000'};
140
140
export default config;
141
141
` ,
@@ -154,7 +154,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
154
154
writeFiles ( DIR , {
155
155
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
156
156
'jest.config.cts' : `
157
- /** @ type {import( '@jest/types').Config} */
157
+ import type {Config} from '@jest/types';
158
158
const config: Config.InitialOptions = {verbose: true};
159
159
export default get config;
160
160
` ,
@@ -212,7 +212,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
212
212
writeFiles ( DIR , {
213
213
'__tests__/dummy.test.js' : "test('dummy', () => expect(12).toBe(12));" ,
214
214
'jest.config.cts' : `
215
- /** @ type {import( '@jest/types').Config} */
215
+ import type {Config} from '@jest/types';
216
216
const config: Config.InitialOptions = {displayName: 'ts-esm-object-config', verbose: true};
217
217
export default config;
218
218
` ,
@@ -230,7 +230,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
230
230
writeFiles ( DIR , {
231
231
'__tests__/dummy.test.js' : "test('dummy', () => expect(12).toBe(12));" ,
232
232
'jest.config.cts' : `
233
- /** @ type {import( '@jest/types').Config} */
233
+ import type {Config} from '@jest/types';
234
234
async function getVerbose() {return true;}
235
235
export default async (): Promise<Config.InitialOptions> => {
236
236
const verbose: Config.InitialOptions['verbose'] = await getVerbose();
@@ -289,7 +289,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
289
289
writeFiles ( DIR , {
290
290
'__tests__/dummy.test.js' : "test('dummy', () => expect(12).toBe(12));" ,
291
291
'jest.config.cts' : `
292
- /** @ type {import( '@jest/types').Config} */
292
+ import type {Config} from '@jest/types';
293
293
const config: Config.InitialOptions = {testTimeout: '10000'};
294
294
export default config;
295
295
` ,
@@ -308,7 +308,7 @@ describe('when `Config` type is imported from "@jest/types"', () => {
308
308
writeFiles ( DIR , {
309
309
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
310
310
'jest.config.cts' : `
311
- /** @ type {import( '@jest/types').Config} */
311
+ import type {Config} from '@jest/types';
312
312
const config: Config.InitialOptions = {verbose: true};
313
313
export default get config;
314
314
` ,
@@ -368,7 +368,7 @@ describe('when `Config` type is imported from "jest"', () => {
368
368
writeFiles ( DIR , {
369
369
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
370
370
'jest.config.cts' : `
371
- /** @ type {import('@jest/types'). Config} */
371
+ import type {Config} from 'jest';
372
372
const config: Config = {displayName: 'ts-object-config', verbose: true};
373
373
export default config;
374
374
` ,
@@ -386,7 +386,7 @@ describe('when `Config` type is imported from "jest"', () => {
386
386
writeFiles ( DIR , {
387
387
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
388
388
'jest.config.cts' : `
389
- /** @ type {import('@jest/types'). Config} */
389
+ import type {Config} from 'jest';
390
390
async function getVerbose() {return true;}
391
391
export default async (): Promise<Config> => {
392
392
const verbose: Config['verbose'] = await getVerbose();
@@ -445,7 +445,7 @@ describe('when `Config` type is imported from "jest"', () => {
445
445
writeFiles ( DIR , {
446
446
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
447
447
'jest.config.cts' : `
448
- /** @ type {import('@jest/types'). Config} */
448
+ import type {Config} from 'jest';
449
449
const config: Config = {testTimeout: '10000'};
450
450
export default config;
451
451
` ,
@@ -464,7 +464,7 @@ describe('when `Config` type is imported from "jest"', () => {
464
464
writeFiles ( DIR , {
465
465
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
466
466
'jest.config.cts' : `
467
- /** @ type {import('@jest/types'). Config} */
467
+ import type {Config} from 'jest';
468
468
const config: Config = {verbose: true};
469
469
export default get config;
470
470
` ,
@@ -522,7 +522,7 @@ describe('when `Config` type is imported from "jest"', () => {
522
522
writeFiles ( DIR , {
523
523
'__tests__/dummy.test.js' : "test('dummy', () => expect(12).toBe(12));" ,
524
524
'jest.config.cts' : `
525
- /** @ type {import('@jest/types'). Config} */
525
+ import type {Config} from 'jest';
526
526
const config: Config = {displayName: 'ts-esm-object-config', verbose: true};
527
527
export default config;
528
528
` ,
@@ -540,7 +540,7 @@ describe('when `Config` type is imported from "jest"', () => {
540
540
writeFiles ( DIR , {
541
541
'__tests__/dummy.test.js' : "test('dummy', () => expect(12).toBe(12));" ,
542
542
'jest.config.cts' : `
543
- /** @ type {import('@jest/types'). Config} */
543
+ import type {Config} from 'jest';
544
544
async function getVerbose() {return true;}
545
545
export default async (): Promise<Config> => {
546
546
const verbose: Config['verbose'] = await getVerbose();
@@ -599,7 +599,7 @@ describe('when `Config` type is imported from "jest"', () => {
599
599
writeFiles ( DIR , {
600
600
'__tests__/dummy.test.js' : "test('dummy', () => expect(12).toBe(12));" ,
601
601
'jest.config.cts' : `
602
- /** @ type {import('@jest/types'). Config} */
602
+ import type {Config} from 'jest';
603
603
const config: Config = {testTimeout: '10000'};
604
604
export default config;
605
605
` ,
@@ -618,7 +618,7 @@ describe('when `Config` type is imported from "jest"', () => {
618
618
writeFiles ( DIR , {
619
619
'__tests__/dummy.test.js' : "test('dummy', () => expect(123).toBe(123));" ,
620
620
'jest.config.cts' : `
621
- /** @ type {import('@jest/types'). Config} */
621
+ import type {Config} from 'jest';
622
622
const config: Config = {verbose: true};
623
623
export default get config;
624
624
` ,
0 commit comments