Pass custom parameters to node process
See original GitHub issueIs this a bug report or a feature request?
🎁
Version Info
- Version of Majestic: 0.2.0
- Version of Jest: 22.0.4
- Version of Node: 9.3.0
- Operating System: macOS 10.13.2
Feature Request
I’m currently using the async generator-functions
feature from Babel, which requires me to pass the flag --harmony-async-iteration
to node.
When I run jest from the CLI, I must run it like this:
node --harmony-async-iteration ./node_modules/.bin/jest --config jest.config.json
I tried pasting this command into the runScript
parameter for Majestic, but I believe Majestic is doing some “smart” parsing of that string which rearranges the Jest parameters incorrectly and passes them to the node
process instead.
So in the Debug Console within Majestic, it prints out warnings like Unrecognized option --json
etc.
It would be great if Majestic allowed passing custom parameters to node!
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How do I pass command line arguments to a Node.js ...
The simplest way of retrieving arguments in Node.js is via the process.argv array. This is a global ...
Read more >How To Handle Command-line Arguments in Node.js Scripts
Node.js supports a list of passed arguments, known as an argument vector. The argument vector is an array available from process.argv in your ......
Read more >How To Pass Command-Line Arguments in Node.js (2022)
argv property returns an array containing the command-line arguments passed when the Node.js process was launched. The first element will be process.execPath ....
Read more >How to parse command line arguments
There you have it - an array containing any arguments you passed in. Notice the first two elements - node and the path...
Read more >How to pass command line arguments to a Node.js app?
process.argv[3] is the second argument passed to the script and so on. Let's run the script with the following command: node ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey nice! Wow, Majestic is looking really slick now. I love that using it is as easy as
npx majestic
and no setup is needed. Going to make this a regular part of my workflow!Thanks @nfarina. I agree this is a much better experience. Please feel free to raise any improvements Majestic could do to make the testing experience better either via github issues or via https://spectrum.chat/majestic