Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Adds state and run exports to index #8748

Closed
wants to merge 12 commits into from
1 change: 1 addition & 0 deletions CHANGELOG.md
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
3 changes: 3 additions & 0 deletions packages/jest-circus/runner.d.ts
@@ -0,0 +1,3 @@
export {default} from './build/legacy-code-todo-rewrite/jestAdapter';
kvendrik marked this conversation as resolved.
Show resolved Hide resolved
export * from './build/state';
export {default as run} from './build/run';
5 changes: 5 additions & 0 deletions packages/jest-circus/runner.js
Expand Up @@ -8,3 +8,8 @@
// Allow people to use `jest-circus/runner` as a runner.
const runner = require('./build/legacy-code-todo-rewrite/jestAdapter');
module.exports = runner;

exports = require('./build/state');
kvendrik marked this conversation as resolved.
Show resolved Hide resolved

const run = require('./build/run');
exports.run = run;