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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic API #10563

Closed
pauldraper opened this issue Sep 29, 2020 · 2 comments
Closed

Programmatic API #10563

pauldraper opened this issue Sep 29, 2020 · 2 comments

Comments

@pauldraper
Copy link

pauldraper commented Sep 29, 2020

馃殌 Feature Proposal

Run jest programmatically, similar to jsunit, mocha, jasmine, etc. JS APIs.

Motivation

I want to integrate Jest with a build tools/test runner (Bazel). That manages compilation, parallelism, workers, file watching, aggregating test reports, etc. (no knock on Jest, but JS is not the only language that needs these, and a consistent tool is nice).

That leaves me needing way to (1) run Jest tests for a file and collect the results, and (2) a way to update snapshots.

Example

await runTests('./example.js', { reporters });

Pitch

Prior work: #7696

There's no documentation, but as far as I can tell, the API is still very much reading config files from disk.

@pauldraper
Copy link
Author

Looks like a dupe of #5048

@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 11, 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

1 participant