-
Notifications
You must be signed in to change notification settings - Fork 47
Create a module with helper functions encapsulating typical configuration scenarios #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Your ideas and feedback is welcome. |
I think this should be taken to a next level. Something like presets/plugins for babel or eslint. For example: https://babeljs.io/docs/plugins/preset-es2015/ I would like to be able to configure wallaby in {
"wallabyConfig": {
"plugins": ["mocha", "webpack", "babel"]
}
} This should then parse |
The presets concept with |
So the goal should be "no configuration", especially for projects that already have a configured test runner for CI etc. |
I like the idea, but importing/sharing |
Well, in this case it should fall back to some sane defaults. These defaults could be then overriden in the config, but for most people there should be no work to start using wallaby. |
Another thing is that users (especially those who don't use webpack/browserify) may want to configure some files to not instrument them (like libs). It may be impossible to guess this without some configuration. |
Also can be done with defaults I assume. Most people put libs into |
What would be in your opinion sane defaults for a tests pattern? I have seen |
I think each modern testing framework/runner has its own, so it's easy to follow IMO: Jest people using Mocha uses etc. |
Probably you're right and |
|
I suppose we can also have |
not like I have any time to volunteer, but please let me know if you could use my assistance. |
On test structure: I've seen people both use subfolders and put them in the same folder as the files under test. IMO it probably depends on what fixtures/harness code you need. |
Closing this issue. Wallaby's automatic configuration means that no Wallaby configuration is required for the majority of users. We'll continue to extend automatic configuration for common frameworks and usage scenarios as we become aware of them. |
The module can be outside the core and open source.
Examples:
.babelrc
(see Add support for .babelrc #208),The API may look like (or something similar):
The text was updated successfully, but these errors were encountered: