diff --git a/.eslintrc.js b/.eslintrc.js index 5f88f7279..d2fe165a5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -61,4 +61,14 @@ module.exports = { // allow debugger during development only 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', }, + overrides: [ + { + files: ['test/cypress/**/*.spec.{js,ts}'], + extends: [ + // Add Cypress-specific lint rules, globals and Cypress plugin + // See https://github.com/cypress-io/eslint-plugin-cypress#rules + 'plugin:cypress/recommended', + ], + }, + ], }; diff --git a/vitest.config.js b/vitest.config.js index 5424a882d..49384bd93 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -13,7 +13,6 @@ export default defineConfig({ include: [ // Matches vitest tests in any subfolder of 'src' or into 'test/vitest/__tests__' // Matches all files with extension 'js', 'jsx', 'ts' and 'tsx' - 'src/**/*.vitest.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', 'test/vitest/__tests__/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', ], },