endpoint-response-override
Version:
The module will override an endpoint response, it is used in the integration tests for express server application
19 lines (18 loc) • 513 B
JavaScript
const pluginJest = require('eslint-plugin-jest');
module.exports = [
{
// update this to match your test files
files: ['**/*.spec.js', '**/*.test.js'],
plugins: { jest: pluginJest },
languageOptions: {
globals: pluginJest.environments.globals.globals,
},
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
},
];