Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10730 from kaicataldo/node-6-tests
Do not run eslint/* tests in Node v6
- Loading branch information
Showing
12 changed files
with
61 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,5 @@ module.exports = ruleComposer.filterReports( | |
} | ||
|
||
return true; | ||
} | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,5 +119,5 @@ module.exports = ruleComposer.filterReports( | |
} | ||
|
||
return true; | ||
} | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = { | ||
collectCoverageFrom: [ | ||
"packages/*/src/**/*.mjs", | ||
"packages/*/src/**/*.js", | ||
"codemods/*/src/**/*.mjs", | ||
"codemods/*/src/**/*.js", | ||
"eslint/*/src/**/*.mjs", | ||
"eslint/*/src/**/*.js", | ||
], | ||
// The eslint/* packages use ESLint v6, which has dropped support for Node v6. | ||
// TODO: Remove this process.version check in Babel 8. | ||
testRegex: `./(packages|codemods${ | ||
/^v6./u.test(process.version) ? "" : "|eslint" | ||
})/[^/]+/test/.+\\.m?js$`, | ||
testPathIgnorePatterns: [ | ||
"/node_modules/", | ||
"/test/fixtures/", | ||
"/test/debug-fixtures/", | ||
"/babel-parser/test/expressions/", | ||
"/test/tmp/", | ||
"/test/__data__/", | ||
"/test/helpers/", | ||
"<rootDir>/test/warning\\.js", | ||
"<rootDir>/build/", | ||
"_browser\\.js", | ||
], | ||
testEnvironment: "node", | ||
setupFilesAfterEnv: ["<rootDir>/test/testSetupFile.js"], | ||
transformIgnorePatterns: [ | ||
"/node_modules/", | ||
"<rootDir>/packages/babel-standalone/babel(\\.min)?\\.js", | ||
"<rootDir>/packages/babel-preset-env-standalone/babel-preset-env(\\.min)?\\.js", | ||
"/test/(fixtures|tmp|__data__)/", | ||
"<rootDir>/(packages|codemods|eslint)/[^/]+/lib/", | ||
], | ||
coveragePathIgnorePatterns: [ | ||
"/node_modules/", | ||
"<rootDir>/packages/babel-standalone/babel(\\.min)?\\.js", | ||
"<rootDir>/packages/babel-preset-env-standalone/babel-preset-env(\\.min)?\\.js", | ||
"/test/(fixtures|tmp|__data__)/", | ||
], | ||
modulePathIgnorePatterns: [ | ||
"/test/fixtures/", | ||
"/test/tmp/", | ||
"/test/__data__/", | ||
"<rootDir>/build/", | ||
], | ||
moduleNameMapper: { | ||
"^@babel/([a-zA-Z0-9_-]+)$": "<rootDir>/packages/babel-$1/", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters