-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STCOR-729 update test deps for react v18 (#1330)
Missed a few test-related deps in #1324. Additionally, convert from local deps/config to importing from jest-config-stripes. Refs STCOR-729
- Loading branch information
Showing
15 changed files
with
38 additions
and
122 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,33 +1,10 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const path = require('path'); | ||
|
||
const esModules = ['@folio', 'ky', 'uuid'].join('|'); | ||
const config = require('@folio/jest-config-stripes'); | ||
|
||
module.exports = { | ||
collectCoverageFrom: [ | ||
'**/(lib|src)/**/*.{js,jsx}', | ||
'!**/node_modules/**', | ||
'!**/test/**', | ||
...config, | ||
setupFiles: [ | ||
...config.setupFiles, | ||
path.join(__dirname, './test/jest/setupFiles.js'), | ||
], | ||
coverageDirectory: './artifacts/coverage-jest/', | ||
coverageReporters: ['lcov'], | ||
reporters: ['jest-junit', 'default'], | ||
transform: { | ||
'^.+\\.(js|jsx)$': path.join(__dirname, './test/jest/jest-transformer.js'), | ||
}, | ||
transformIgnorePatterns: [`/node_modules/(?!${esModules})`], | ||
moduleNameMapper: { | ||
'^.+\\.(css)$': 'identity-obj-proxy', | ||
'^.+\\.(svg)$': 'identity-obj-proxy', | ||
'ky': 'ky/umd', | ||
'uuid': require.resolve('uuid'), // https://github.com/uuidjs/uuid/issues/451 | ||
}, | ||
testEnvironment: 'jsdom', | ||
testMatch: ['**/(lib|src)/**/?(*.)test.{js,jsx}'], | ||
testPathIgnorePatterns: ['/node_modules/', '/test/ui-testing/', '/test/bigtest/'], | ||
setupFiles: [path.join(__dirname, './test/jest/setupTests.js')], | ||
setupFilesAfterEnv: [path.join(__dirname, './test/jest/jest.setup.js')], | ||
|
||
roots: ['<rootDir>', './src'], | ||
modulePaths: ['<rootDir>', './src'], | ||
}; |
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 |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
} | ||
} | ||
|
||
|
||
@media (--medium-down) { | ||
.logo { | ||
margin-top: 0; | ||
|
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 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.