question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass custom parameters to node process

See original GitHub issue

Is 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:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
nfarinacommented, Mar 22, 2019

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!

0reactions
Raathigeshcommented, Mar 22, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found