From d9fd891cb85873846f5f3bf373c3f13921dc0059 Mon Sep 17 00:00:00 2001 From: Automator Date: Wed, 24 Apr 2019 16:30:49 +0000 Subject: [PATCH] Monorepo: upgrade dependencies The new eslint rule `jest/no-mocks-import` is disabled for now because of some issue with dynamic imports. See: https://github.com/jest-community/eslint-plugin-jest/pull/249 kiwicom-source-id: 7b3cacb71cb79871f9caf2b3f3677500b0111796 --- __tests__/__snapshots__/index.test.js.snap | 1 + ourRules.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap index 8c1618f..b884e8b 100644 --- a/__tests__/__snapshots__/index.test.js.snap +++ b/__tests__/__snapshots__/index.test.js.snap @@ -205,6 +205,7 @@ Object { "jest/no-jasmine-globals": 2, "jest/no-jest-import": 2, "jest/no-large-snapshots": 0, + "jest/no-mocks-import": 0, "jest/no-test-callback": 0, "jest/no-test-prefixes": 0, "jest/no-test-return-statement": 2, diff --git a/ourRules.js b/ourRules.js index c4be027..197054b 100644 --- a/ourRules.js +++ b/ourRules.js @@ -276,6 +276,7 @@ module.exports = { 'jest/no-jasmine-globals': ERROR, 'jest/no-jest-import': ERROR, 'jest/no-large-snapshots': OFF, + 'jest/no-mocks-import': OFF, // TODO: NEXT_VERSION_ERROR after https://github.com/jest-community/eslint-plugin-jest/pull/249 'jest/no-test-callback': OFF, 'jest/no-test-prefixes': OFF, 'jest/no-test-return-statement': ERROR, diff --git a/package.json b/package.json index 909f3a0..7c79eb8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "eslint-plugin-eslint-comments": "^3.1.1", "eslint-plugin-flowtype": "^3.6.1", "eslint-plugin-import": "^2.17.2", - "eslint-plugin-jest": "^22.4.1", + "eslint-plugin-jest": "^22.5.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-kiwicom-incubator": "^0.5.0", "eslint-plugin-monorepo": "^0.2.1",