forked from palantir/blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eslint-plugin-blueprint] fix(icon-components): autofix (palantir#3938)
also run this package's tests in CI properly
- Loading branch information
Showing
5 changed files
with
74 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
module.exports = { | ||
/* | ||
* Copyright 2020 Palantir Technologies, Inc. All rights reserved. | ||
*/ | ||
|
||
const path = require("path"); | ||
|
||
const config = { | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
testRegex: '__tests__\/.+\\.test\\.ts$', | ||
collectCoverage: false, | ||
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'], | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
coverageReporters: ['text-summary', 'lcov'], | ||
}; | ||
|
||
if (process.env.JUNIT_REPORT_PATH) { | ||
const outputDirectory = path.join( | ||
__dirname, | ||
'../..', | ||
process.env.JUNIT_REPORT_PATH, | ||
path.basename(__dirname) | ||
); | ||
console.info(`Jest report will appear in ${outputDirectory}`); | ||
config.reporters = [ | ||
'default',, | ||
['jest-junit', { | ||
outputDirectory, | ||
}] | ||
]; | ||
} | ||
|
||
module.exports = config; |
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 |
---|---|---|
|
@@ -6499,6 +6499,17 @@ jest-jasmine2@^24.9.0: | |
pretty-format "^24.9.0" | ||
throat "^4.0.0" | ||
|
||
jest-junit@^10.0.0: | ||
version "10.0.0" | ||
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-10.0.0.tgz#c94b91c24920a327c9d2a075e897b2dba4af494b" | ||
integrity sha512-dbOVRyxHprdSpwSAR9/YshLwmnwf+RSl5hf0kCGlhAcEeZY9aRqo4oNmaT0tLC16Zy9D0zekDjWkjHGjXlglaQ== | ||
dependencies: | ||
jest-validate "^24.9.0" | ||
mkdirp "^0.5.1" | ||
strip-ansi "^5.2.0" | ||
uuid "^3.3.3" | ||
xml "^1.0.1" | ||
|
||
jest-leak-detector@^24.9.0: | ||
version "24.9.0" | ||
resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz#b665dea7c77100c5c4f7dfcb153b65cf07dcf96a" | ||
|
@@ -12200,10 +12211,10 @@ uuid@^2.0.1: | |
resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" | ||
integrity sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho= | ||
|
||
uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2: | ||
version "3.3.3" | ||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" | ||
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== | ||
uuid@^3.0.1, uuid@^3.1.0, uuid@^3.3.2, uuid@^3.3.3: | ||
version "3.4.0" | ||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" | ||
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== | ||
|
||
[email protected]: | ||
version "2.0.3" | ||
|
@@ -12690,6 +12701,11 @@ xml-name-validator@^3.0.0: | |
resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" | ||
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== | ||
|
||
xml@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" | ||
integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU= | ||
|
||
[email protected]: | ||
version "8.2.2" | ||
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773" | ||
|