-
Notifications
You must be signed in to change notification settings - Fork 39
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 #3636 from project-koku/release_stage-stable.12421
Deployment commit for stage-stable
- Loading branch information
Showing
137 changed files
with
2,582 additions
and
2,021 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,27 @@ | ||
module.exports = { | ||
clearMocks: true, | ||
collectCoverage: false, | ||
collectCoverageFrom: ['src/**/*.tsx'], | ||
coverageDirectory: './coverage/', | ||
fakeTimers: { | ||
enableGlobally: true, | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js'], | ||
moduleDirectories: ['node_modules', '<rootDir>/src'], | ||
moduleNameMapper: { | ||
'\\.(css|less|sass|scss)$': '<rootDir>/test/styleMock.js', | ||
}, | ||
roots: ['<rootDir>/src'], | ||
setupFiles: ['./test/testEnv.ts'], | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: { | ||
url: 'http://localhost/', | ||
}, | ||
testRegex: '\\.test\\.(jsx?|tsx?)$', | ||
testTimeout: 30000, | ||
transform: { | ||
'^.+\\.[jt]sx?$': '<rootDir>/test/transformTS.js', | ||
'^.+\\.(jpg)$': '<rootDir>/test/transformFile.js', | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!(@patternfly/react-icons/dist/esm|uuid/dist/esm-browser))'], | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,30 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": "./src", | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react", | ||
"isolatedModules": false, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"noUnusedLocals": true, | ||
"outDir": "./dist", | ||
"resolveJsonModule": true, | ||
"target": "es2017", | ||
"lib": [ | ||
"dom", | ||
"es2017" | ||
] | ||
}, | ||
"include": [ | ||
"./src/**/*.ts*", | ||
"./test/**/*" | ||
], | ||
"exclude": [ | ||
"./node_modules/**", | ||
"./src/**/*.test.ts*", | ||
"./src/__mocks__/*" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -55,3 +55,5 @@ dist/ | |
/build/ | ||
report.*.json | ||
locales/*[en|de|fr].json | ||
.vscode/ | ||
.swc/ |
This file was deleted.
Oops, something went wrong.
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,27 +1,49 @@ | ||
const transformIgnorePatterns = [ | ||
'node_modules/(?!(@patternfly/react-core/src|@patternfly/react-icons/dist/esm|uuid/dist/esm-browser))', | ||
]; | ||
|
||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
clearMocks: true, | ||
collectCoverage: false, | ||
collectCoverageFrom: ['src/**/*.tsx'], | ||
coverageDirectory: './coverage/', | ||
// collectCoverageFrom: ['src/**/*.js'], | ||
// coverageDirectory: './coverage/', | ||
fakeTimers: { | ||
enableGlobally: true, | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js'], | ||
moduleDirectories: ['node_modules', '<rootDir>/src'], | ||
moduleNameMapper: { | ||
'\\.(css|less|sass|scss)$': '<rootDir>/test/styleMock.js', | ||
'\\.(css|scss)$': 'identity-obj-proxy', | ||
}, | ||
roots: ['<rootDir>/src'], | ||
setupFiles: ['./test/testEnv.ts'], | ||
preset: 'ts-jest', | ||
roots: ['<rootDir>/src/'], | ||
setupFiles: ['<rootDir>/test/testEnv.ts'], | ||
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.js'], | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: { | ||
url: 'http://localhost/', | ||
}, | ||
testRegex: '\\.test\\.(jsx?|tsx?)$', | ||
testTimeout: 30000, | ||
// testEnvironment: 'jest-environment-jsdom', | ||
transformIgnorePatterns, | ||
transform: { | ||
'^.+\\.[jt]sx?$': '<rootDir>/test/transformTS.js', | ||
'^.+\\.(jpg)$': '<rootDir>/test/transformFile.js', | ||
'^.+\\.svg$': 'jest-transform-stub', | ||
'^.+\\.(ts|js)x?$': [ | ||
'@swc/jest', | ||
{ | ||
$schema: 'http://json.schemastore.org/swcrc', | ||
jsc: { | ||
experimental: { | ||
plugins: [['jest_workaround', {}]], | ||
}, | ||
parser: { | ||
jsx: true, | ||
syntax: 'typescript', | ||
tsx: true, | ||
}, | ||
transform: { | ||
react: { | ||
runtime: 'automatic', | ||
}, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!(@patternfly/react-icons/dist/esm|uuid/dist/esm-browser))'], | ||
}; |
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
Oops, something went wrong.