-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 (#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
a1fa406
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[eslint-plugin-blueprint] fix(icon-components): autofix (#3938)
Previews: documentation | landing | table