Add separate file to configure this plugin
See original GitHub issueHello @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:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top 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 >
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
Wow!! Awesome @Hargne !!
Thank you for working on that, I loved the new features!
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 😃