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.

Add separate file to configure this plugin

See original GitHub issue

Hello @Hargne

First of all, thanks for this plugin. It’s been helpful to me 👍

I would like to suggest a feature request that allow the configuration to be set in a different file than package.json. It doesn’t have to be necessarily the Jest main config, as suggested in #12, but keeping it separate makes sense in the perspective of separation of concerns.

Unfortunately, package .json has become very bloated, where every JS plugin just “injects” its configuration into it, but this pattern only increases the size of the file while keeps it unmaintainable over time, particularly because you can’t just split it.

What do you think?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
kriansacommented, Feb 2, 2018

Wow!! Awesome @Hargne !!

Thank you for working on that, I loved the new features!

2reactions
Hargnecommented, Jan 23, 2018

Additional environment variables have been added in v0.6.0 (#22) that offers an alternative way to configure this plugin (following the design of jest-junit, as suggested by @pascalduez in this comment).

No option for an extra configuration file has been added. I believe that adding yet another config file with the sole purpose of configuring this plugin would both be redundant and confusing as plugins are normally configured within package.json.

Adding configuration to jest.config.js is not something that this plugin should do (please read this issue for an explanation).

Please re-open this issue if you don’t agree with this 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to link different "setup" files per plugin nvim (LUA ... - Reddit
Could someone help and explain to me how I could create a different plugin config script per plugin that I can somehow call...
Read more >
Intro to WordPress Plugin Development: Separate Into ...
Why separate code into multiple files? · Create custom post types · Creates shortcodes · Load scripts and styles · Adds a menu...
Read more >
Separating Your Plugin into Multiple Files
By separating your plugin into multiple files, you immediately make the entire plugin easier to manage, debug, and understand, especially for ...
Read more >
How to structure a plugin into multiple files using classes?
inc -core.php -plugin-settings.php ; css -style.css ; lang plugin-file.php.
Read more >
Configure plugin in separate file using Kotlin DSL
Try something like below. I have declared a plugin "sonarqube" in my main gradle. I then apply the file sonar.gradle.kts towards the end...
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