diff --git a/CHANGELOG.md b/CHANGELOG.md index cfd8a5b022bd..bfcd11c21f09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ - `[jest-console]` [**BREAKING**] Move `root` into `config` and take `GlobalConfig` as mandatory parameter for `getConsoleOutput` ([#10126](https://github.com/facebook/jest/pull/10126)) - `[jest-fake-timers]` Clarify global behavior of `jest.useFakeTimers` and `jest.useRealTimers` ([#10867](https://github.com/facebook/jest/pull/10867)) - `[jest-haste-map]` [**BREAKING**] Migrate to ESM ([#10875](https://github.com/facebook/jest/pull/10875)) +- `[jest-jasmine2]` [**BREAKING**] Migrate to ESM ([#10906](https://github.com/facebook/jest/pull/10906)) - `[jest-repl, jest-runtime]` [**BREAKING**] Move the `jest-runtime` CLI into `jest-repl` ([#10016](https://github.com/facebook/jest/pull/10016)) - `[jest-resolve]` [**BREAKING**] Migrate to ESM ([#10688](https://github.com/facebook/jest/pull/10688)) - `[jest-resolve-dependencies]` [**BREAKING**] Migrate to ESM ([#10876](https://github.com/facebook/jest/pull/10876)) diff --git a/packages/jest-jasmine2/src/index.ts b/packages/jest-jasmine2/src/index.ts index 29d508cc6f6d..786282307d81 100644 --- a/packages/jest-jasmine2/src/index.ts +++ b/packages/jest-jasmine2/src/index.ts @@ -17,13 +17,13 @@ import {installErrorOnPrivate} from './errorOnPrivate'; import type Spec from './jasmine/Spec'; import jasmineAsyncInstall from './jasmineAsyncInstall'; import JasmineReporter from './reporter'; -import type {Jasmine as JestJasmine} from './types'; +export type {Jasmine} from './types'; const JASMINE = require.resolve('./jasmine/jasmineLight'); const jestEachBuildDir = path.dirname(require.resolve('jest-each')); -async function jasmine2( +export default async function jasmine2( globalConfig: Config.GlobalConfig, config: Config.ProjectConfig, environment: JestEnvironment, @@ -211,9 +211,3 @@ const addSnapshotData = ( return results; }; - -declare namespace jasmine2 { - export type Jasmine = JestJasmine; -} - -export = jasmine2;