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.

Allow `--nycrc-path` to be absolute

See original GitHub issue

At the moment --nycrc-path value must be relative. It would be great if this could be absolute as well.

My use case: I have a module with shared development tasks that I use in many libraries. One of those tasks is running tests with nyc. The nyc configuration is always the same, i.e. I want to specify it inside that shared module instead of inside each library.

I cannot use --cwd as it would impact test coverage (not just configuration loading). I.e. I need to use __dirname with an absolute path.

My current workaround is to use CLI flags instead of a configuration file, but a configuration file would be better.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
coreyfarrellcommented, May 28, 2019

The new release of find-up has been made and will fix this issue once we’re able to release nyc@15. I’m going to close this issue as no further action will happen here, bumping find-up will happen as part of a mass dependency update. Please follow #1104 for progress updates about the next release of nyc.

1reaction
coreyfarrellcommented, May 6, 2019

@ehmicky this will be supported by the next release of find-up, once that is released and we upgrade this issue will be fixed. The next version of find-up will require node.js 8 so the plan is that this will be fixed in nyc@15. I can’t promise 15.0.0, it depends on when the next find-up release occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

load-nyc-config/README.md at master · istanbuljs ... - GitHub
nycrcPath. Type: string Default: undefined. Name of the file containing nyc configuration. This can be a relative or absolute path. Relative paths can...
Read more >
client/node_modules/@istanbuljs/load-nyc-config/README.md
nycrcPath. Type: string Default: undefined. Name of the file containing nyc configuration. This can be a relative or absolute path.
Read more >
Using Absolute and Relative References - YouTube
Excel Relative vs Absolute Cell References · Excel 2019 Exam MO-200 - Using Relative, Absolute, and Mixed References · MS Excel - Cell...
Read more >
How to Use Absolute Cell Reference in Excel - YouTube
We use an absolute cell reference in Excel calculations when we need to keep the reference to a cell in a formula constant....
Read more >
How to Use Absolute & Relative Cell References in Microsoft ...
We often add cell references to our formulas in Microsoft Excel. Just as the name suggests, they are references to other cells.
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