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

jest-runtime documentation #5105

Closed
sanderkoenders opened this issue Dec 18, 2017 · 8 comments
Closed

jest-runtime documentation #5105

sanderkoenders opened this issue Dec 18, 2017 · 8 comments

Comments

@sanderkoenders
Copy link

I am trying to hook into Jest with the jest-runtime package but I noticed there is no documentation available for setting it up. It would be nice if documentation could be added to the package.

@SimenB
Copy link
Member

SimenB commented Dec 18, 2017

@Archcry what in particular are you trying to achieve?

Sorta related: #5048

@sanderkoenders
Copy link
Author

Well, I am developing react support in Stryker. We currently do have a jest plug-in for Stryker which creates a context and runs tests on that context. This plug-in doesn't work with react projects unfortunately and that's why I am trying to figure out how all of this works. What I basically want is the following:

We mutate the users source-code and push it to the Jest plug-in in order to test is. Because we perform multiple test runs we want to run jest programmatically. In the current plug-in they create a hasteContext and run tests on the context. I just can't wrap my head around what the context does, why we have to provide the test files to the runTests function and how the jest configuration is interpreted and used. I've been trying to debug my way around the source-code but I don't really understand all of it :S

@cpojer
Copy link
Member

cpojer commented Dec 18, 2017

Closing because this is not an issue with Jest.

@cpojer cpojer closed this as completed Dec 18, 2017
@SimenB
Copy link
Member

SimenB commented Dec 18, 2017

Can you use jest-editor-support for this? jest-runtime is not really made to be consumed directly - the API is a bit too hairy and non-defined for that

@sanderkoenders
Copy link
Author

sanderkoenders commented Dec 18, 2017

@cpojer, not having documentation for a package that is in the Jest repository and published on NPM sort of is an issue with Jest. I agree that what I want to do is not necessarily the problem of the Jest project but having API documentation for published packages is.

@cpojer
Copy link
Member

cpojer commented Dec 18, 2017

Yep, unfortunately we do not have time to write this documentation. If you have time to help us out, we'd greatly appreciated it.

@sanderkoenders
Copy link
Author

Once I wrap my head around the code I'll try to contribute, thanks for the fast replies :)

@github-actions
Copy link

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.

@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

No branches or pull requests

3 participants