Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Fix using "group" option without a "testGenerator" #220

Closed

Conversation

esbanarango
Copy link

This PR fixes #213, by preventing to set group option to true if the testGenerator option is not set.

@Turbo87 Turbo87 changed the title Fix #213 Fix using "group" option without a "testGenerator" Oct 24, 2017
@@ -43,7 +43,7 @@ module.exports = {

return ESLint.create(tree, {
testGenerator: this.options.testGenerator || this._testGenerator,
group: (this.options.group !== false) ? type : undefined,
group: (this.options.testGenerator && this.options.group !== false) ? type : undefined,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not work if the test generator is detected automatically by this._testGenerator.

I guess the logic should be:

use group: type if:

and otherwise set the group option to undefined

@Turbo87
Copy link
Member

Turbo87 commented Nov 24, 2018

closing due to inactivity

@Turbo87 Turbo87 closed this Nov 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: The "group" options can only be used with a "testGenerator" option of: qunit,mocha
2 participants