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

Added jest-runtime CLI #1193

Merged
merged 4 commits into from Jun 21, 2016
Merged

Added jest-runtime CLI #1193

merged 4 commits into from Jun 21, 2016

Conversation

sampepose
Copy link
Contributor

I added a CLI to jest-runtime which allows any script to be run within a Jest environment.

Execution: jest-runtime --config

This allows any script to be run within the Jest environment.

Usage: jest-runtime --config <config> <path to script>
@ghost ghost added the CLA Signed ✔️ label Jun 20, 2016
'use strict';

if (process.env.NODE_ENV == null) {
process.env.NODE_ENV = 'test';
Copy link
Member

Choose a reason for hiding this comment

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

Originally I thought we won't need this, but I think it is a good default for preprocessors etc. that require a test environment. I think it's fine.

@cpojer cpojer merged commit 4f2ce5f into jestjs:master Jun 21, 2016
@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 14, 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.

None yet

2 participants