From d83277bdf2e20d68a5e609064fa55c7bb98da940 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Fri, 10 Jan 2020 00:43:59 +0200 Subject: [PATCH] remove code for old Node from jest config --- jest.config.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/jest.config.js b/jest.config.js index 746d601bb..fc8e85ea0 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,14 +3,6 @@ const ENABLE_TEST_RESULTS = !!process.env.ENABLE_TEST_RESULTS; const ENABLE_CODE_COVERAGE = !!process.env.ENABLE_CODE_COVERAGE; -const requiresPrettierInternals = [ - "tests_integration/__tests__/util-shared.js", - "tests_integration/__tests__/help-options.js" -]; - -const semver = require("semver"); -const isOldNode = semver.parse(process.version).major <= 4; - module.exports = { setupFiles: ["/tests_config/run_spec.js"], snapshotSerializers: [ @@ -18,9 +10,7 @@ module.exports = { "jest-snapshot-serializer-ansi" ], testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$", - testPathIgnorePatterns: ["tests/new_react", "tests/more_react"].concat( - isOldNode ? requiresPrettierInternals : [] - ), + testPathIgnorePatterns: ["tests/new_react", "tests/more_react"], collectCoverage: ENABLE_CODE_COVERAGE, collectCoverageFrom: ["src/**/*.js", "index.js", "!/node_modules/"], coveragePathIgnorePatterns: [