Skip to content

Commit

Permalink
Enforce no .only and no .skip in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Oct 15, 2023
1 parent f661669 commit b7cdc52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ module.exports = {
tsconfigRootDir: __dirname,
project: ["./tests/tsconfig.json"],
},
rules: {
"vitest/no-disabled-tests": warn,
"vitest/no-focused-tests": warn,
},
},
{
files: "examples/**/*.ts",
Expand All @@ -215,6 +219,10 @@ module.exports = {
tsconfigRootDir: __dirname,
project: ["./examples/tsconfig.json"],
},
rules: {
"vitest/no-disabled-tests": warn,
"vitest/no-focused-tests": warn,
},
},
],
};

0 comments on commit b7cdc52

Please sign in to comment.