Skip to content

Commit

Permalink
Error if describeApi.only is seen
Browse files Browse the repository at this point in the history
  • Loading branch information
matttrawicki committed Oct 29, 2024
1 parent 328482c commit 23ec28f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path');
const importModules = require('import-modules');
const noOnlyTest = require('eslint-plugin-no-only-tests');

module.exports = {
rules: importModules(path.resolve(__dirname, 'rules'), { camelize: false }),
Expand Down Expand Up @@ -69,8 +70,12 @@ module.exports = {
'import/export': 'off',

// no-only-tests
'no-only-tests/no-only-tests': 'error',

'no-only-tests/no-only-tests': [
'error', {
// describeApi is from our new route testing helper
'block': ['describeApi'].concat(noOnlyTest.rules['no-only-tests'].meta.schema[0].properties.block.default)
}
] ,
// @typescript-eslint
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-empty-function': 'off',
Expand Down

0 comments on commit 23ec28f

Please sign in to comment.