Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix: Cypress fixes 🌲 (#245)
  • Loading branch information
DHedgecock committed Sep 13, 2020
1 parent 741c69c commit 6899371
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/__snapshots__/index.spec.js.snap
Expand Up @@ -144,6 +144,7 @@ Object {
"cypress/require-data-selectors": "error",
"func-names": "off",
"spaced-comment": "off",
"testing-library/prefer-screen-queries": "off",
},
},
Object {
Expand All @@ -153,7 +154,6 @@ Object {
"files": Array [
".eslintrc.js",
".storybook/main.js",
"cypress/plugins/index.js",
"babel.config.js",
"jest.config.js",
"webpack.config.js",
Expand Down Expand Up @@ -1171,6 +1171,7 @@ Object {
"cypress/require-data-selectors": "error",
"func-names": "off",
"spaced-comment": "off",
"testing-library/prefer-screen-queries": "off",
},
},
Object {
Expand All @@ -1180,7 +1181,6 @@ Object {
"files": Array [
".eslintrc.js",
".storybook/main.js",
"cypress/plugins/index.js",
"babel.config.js",
"jest.config.js",
"webpack.config.js",
Expand Down
7 changes: 5 additions & 2 deletions src/index.js
Expand Up @@ -252,15 +252,18 @@ module.exports = function eloquence({
env: {
'cypress/globals': true,
},
rules: pluginCypress,
rules: {
...pluginCypress,
// Screen utility isn't available in Cypress tests
'testing-library/prefer-screen-queries': 'off',
},
},

// --- ⚙️ Configuration files --------------------------
{
files: [
'.eslintrc.js',
'.storybook/main.js',
'cypress/plugins/index.js',
'babel.config.js',
'jest.config.js',
'webpack.config.js',
Expand Down

0 comments on commit 6899371

Please sign in to comment.