Try alternative jest-canvas-mock location and version file syntax
This commit is contained in:
parent
ee5530183e
commit
fe3ee3010f
@ -77,7 +77,7 @@ yarn install --no-ignore-optional --pure-lockfile
|
||||
cd ./platform/viewer/
|
||||
|
||||
# Create a Versions File
|
||||
node -p -e "'export default require(\'./package.json\').version;'" > src/version.js
|
||||
node -p -e '"export default "' + require(\"./../package.json\").version + '";"' > src/version.js
|
||||
# Copy over wado-image-loader codecs and worker file
|
||||
cp ./../../node_modules/cornerstone-wado-image-loader/dist/*.min.js* public -v
|
||||
# Build using react-scripts
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
module.exports = {
|
||||
verbose: true,
|
||||
testMatch: ['<rootDir>/src/**/*.test.js'],
|
||||
testMatch: ["<rootDir>/src/**/*.test.js"],
|
||||
//
|
||||
collectCoverage: false,
|
||||
collectCoverageFrom: [
|
||||
'<rootDir>/src/**/*.{js,jsx}',
|
||||
'!<rootDir>/src/**/*.test.js',
|
||||
'!**/node_modules/**',
|
||||
'!**/__tests__/**',
|
||||
"<rootDir>/src/**/*.{js,jsx}",
|
||||
"!<rootDir>/src/**/*.test.js",
|
||||
"!**/node_modules/**",
|
||||
"!**/__tests__/**"
|
||||
],
|
||||
reporters: ['default', 'jest-junit'],
|
||||
reporters: ["default", "jest-junit"],
|
||||
//
|
||||
moduleNameMapper: {
|
||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
||||
'<rootDir>/src/__mocks__/fileMock.js',
|
||||
'\\.(css|less)$': 'identity-obj-proxy',
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
||||
"<rootDir>/src/__mocks__/fileMock.js",
|
||||
"\\.(css|less)$": "identity-obj-proxy"
|
||||
},
|
||||
setupFiles: ['<rootDir>/node_modules/jest-canvas-mock/lib/index.js'],
|
||||
setupTestFrameworkScriptFile: '<rootDir>/src/__tests__/globalSetup.js',
|
||||
}
|
||||
setupFiles: ["<rootDir>../../node_modules/jest-canvas-mock/lib/index.js"],
|
||||
setupTestFrameworkScriptFile: "<rootDir>/src/__tests__/globalSetup.js"
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user