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

Make jest-runner a standalone package. #4236

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Make jest-runner a standalone package. #4236

merged 1 commit into from
Aug 10, 2017

Conversation

cpojer
Copy link
Member

@cpojer cpojer commented Aug 10, 2017

Summary

This diff splits TestRunner, runTest and TestWorker into a separate package called jest-runner. As part of this separation, a few console related modules were moved to jest-util, where other console parts were already located. This diff has no functional changes.

Test plan
jest

@@ -18,14 +18,16 @@ import type {
TestResult,
} from 'types/TestResult';
import type Runtime from 'jest-runtime';
import type TestWatcher from 'jest-cli/src/test_watcher';
import type {TestWatcher as _TestWatcher} from 'jest-cli';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just keep it with the standard name? I don't see any place where it could collide.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's required in this file to be exported under the same name, that way I get around making jest-runner depend on jest-cli, which would be a circular dependency just to include the type information. export type TestWatcher = TestWatcher doesn't work in Flow.

Copy link
Contributor

@mjesun mjesun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait until CircleCI finishes to proceed :)

@cpojer cpojer merged commit 5e144b1 into jestjs:master Aug 10, 2017
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
@github-actions
Copy link

This pull request 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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants