Skip to content
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Features

- `[babel-plugin-jest-hoist]` Show codeframe on static hoisting issues ([#8865](https://github.com/facebook/jest/pull/8865))
- `[jest-circus]` Export `state` and `run` ([#8748](https://github.com/facebook/jest/pull/8748))
- `[jest-config]` [**BREAKING**] Set default display name color based on runner ([#8689](https://github.com/facebook/jest/pull/8689))
- `[jest-diff]` Add options for colors and symbols ([#8841](https://github.com/facebook/jest/pull/8841))
- `[jest-runner]` Warn if a worker had to be force exited ([#8206](https://github.com/facebook/jest/pull/8206))
Expand Down
10 changes: 10 additions & 0 deletions packages/jest-circus/runner.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import adapter = require('./build/legacy-code-todo-rewrite/jestAdapter');
import * as circusState from './build/state';
import circusRun from './build/run';

declare namespace jestCircusRunner {
export const state = circusState;
export const run = circusRun;
}

export = jestCircusRunner;
5 changes: 3 additions & 2 deletions packages/jest-circus/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
*/

// Allow people to use `jest-circus/runner` as a runner.
const runner = require('./build/legacy-code-todo-rewrite/jestAdapter');
module.exports = runner;
module.exports = require('./build/legacy-code-todo-rewrite/jestAdapter');
module.exports.state = require('./build/state');
module.exports.run = require('./build/run');