Skip to content

Commit

Permalink
Disable some jest eslint rules
Browse files Browse the repository at this point in the history
The `test` function from `fusion-test-utils` is incompatible with `jest` so these rules don't really apply to tests in fusion until we can migrate to using jest directly

Co-authored-by: Mickey Burks <mburks@uber.com>
  • Loading branch information
2 people authored and fusionjs-sync-bot[bot] committed Nov 18, 2019
1 parent 86d0a1c commit 5e91115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eslint-config-fusion/rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,9 @@ module.exports = {
// This rule enforces that all exports are declared at the bottom of the file.
// https://github.com/benmosher/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
'import/exports-last': 'off',

// eslint-config-jest@23 adds these rules that are incompatible with `fusion-test-utils`
'jest/expect-expect': 'off',
'jest/no-test-callback': 'off',
},
};

0 comments on commit 5e91115

Please sign in to comment.