You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, runCLI, AggregatedResult and GlobalConfig were exported in jest but I found that runCLI is now to be imported from @jest/core and AggregatedResult and GlobalConfig from @jest/test-result and @jest/types respectively. Because these packages use the export type syntax, it is impossible to consume these using older versions of the TypeScript compiler.
Similar issues
Jest recently published fixes for very similar issues - see #9703 and #9714.
Steps to reproduce the behavior:
import @jest/types or @jest/test-result using an older version of the TypeScript compiler. The problem is:
import keyword does not understand export type.
import type is not available in older versions of TypeScript compiler.
Expected behavior
@jest/types or @jest/test-result is import-able by a older versions of the TypeScript compiler.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Previously,
runCLI
,AggregatedResult
andGlobalConfig
were exported injest
but I found thatrunCLI
is now to be imported from@jest/core
andAggregatedResult
andGlobalConfig
from@jest/test-result
and@jest/types
respectively. Because these packages use theexport type
syntax, it is impossible to consume these using older versions of the TypeScript compiler.Similar issues
Jest recently published fixes for very similar issues - see #9703 and #9714.
Steps to reproduce the behavior:
import
@jest/types
or@jest/test-result
using an older version of the TypeScript compiler. The problem is:import
keyword does not understandexport type
.import type
is not available in older versions of TypeScript compiler.Expected behavior
@jest/types
or@jest/test-result
is import-able by a older versions of the TypeScript compiler.Link to how these exports are currently used
See how runCLI, AggregatedResult, and GlobalConfig are used: https://github.com/microsoft/rushstack/blob/fe4019a62d4dadeba329bafa0eab46b6f7bc0e67/core-build/gulp-core-build/src/tasks/JestTask.ts#L171-L177
The text was updated successfully, but these errors were encountered: