Skip to content

Commit

Permalink
fix: fix regular expression for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
KillWolfVlad committed Sep 3, 2023
1 parent 7229c99 commit aea604b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configs/sonarjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
overrides: [
{
files: [
"*{spec, test, tests}.*",
"*{spec,test,tests}.*",
"**/__tests__/**",
"**/__stories__/**",
"**/__fixtures__/**",
Expand Down
2 changes: 1 addition & 1 deletion jest-style-frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
module.exports = {
overrides: [
{
files: ["*{spec, test, tests}.*", "**/__tests__/**"],
files: ["*{spec,test,tests}.*", "**/__tests__/**"],
rules: {
// eslint-plugin-jest Rules
"jest/consistent-test-it": [
Expand Down
2 changes: 1 addition & 1 deletion jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
module.exports = {
overrides: [
{
files: ["*{spec, test, tests}.*", "**/__tests__/**"],
files: ["*{spec,test,tests}.*", "**/__tests__/**"],
extends: ["plugin:jest/recommended"],
env: {
"jest/globals": true,
Expand Down
2 changes: 1 addition & 1 deletion node.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
},
},
{
files: ["*{spec, test, tests}.*", "**/__tests__/**", "**/test/**"],
files: ["*{spec,test,tests}.*", "**/__tests__/**", "**/test/**"],
rules: {
// eslint-plugin-n Stylistic Issues
"n/no-sync": "off", // allow sync methods in tests, e.g. when use factory.ts
Expand Down
2 changes: 1 addition & 1 deletion typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = {
},
{
files: [
"*{spec, test, tests, stories}.*",
"*{spec,test,tests,stories}.*",
"**/__tests__/**",
"**/__stories__/**",
],
Expand Down

0 comments on commit aea604b

Please sign in to comment.