Skip to content

Commit

Permalink
Use new testRuleConfigs function of jest-preset-stylelint (#7124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 10, 2023
1 parent a6df588 commit 83a3e2b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 10 additions & 0 deletions lib/rules/alpha-value-notation/__tests__/index.mjs
Expand Up @@ -531,3 +531,13 @@ testRule({
},
],
});

testRuleConfigs({
ruleName,

reject: [
{
config: ['invalid'],
},
],
});
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -84,7 +84,8 @@
"__dirname": true,
"module": true,
"require": true,
"testRule": true
"testRule": true,
"testRuleConfigs": true
},
"root": true
},
Expand Down Expand Up @@ -201,7 +202,7 @@
"eslint-plugin-jest": "^27.2.3",
"husky": "^8.0.3",
"jest": "^29.6.2",
"jest-preset-stylelint": "^6.1.1",
"jest-preset-stylelint": "^6.2.0",
"jest-watch-typeahead": "^2.2.2",
"lint-staged": "^13.2.3",
"np": "^8.0.4",
Expand Down

0 comments on commit 83a3e2b

Please sign in to comment.