Skip to content

Commit

Permalink
feat(cozy-sharing): Replace jsdom-sixteen package
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Dec 23, 2024
1 parent 0c678a1 commit b75bc51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/cozy-sharing/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ module.exports = {
'!**/vendor/**',
'!**/*.stories.{js,jsx,ts,tsx}'
],
testPathIgnorePatterns: ['node_modules', 'dist', '__tests__'],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/dist/',
'<rootDir>/__tests__/'
],
roots: ['<rootDir>/src'],
testURL: 'http://localhost/',
moduleFileExtensions: ['js', 'jsx', 'json', 'styl'],
Expand All @@ -18,6 +22,8 @@ module.exports = {
'^cozy-logger$': 'cozy-logger/dist/index.js',
'^cozy-client$': 'cozy-client/dist/index.js'
},
transformIgnorePatterns: ['node_modules/(?!cozy-ui)'],
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(cozy-ui|cozy-harvest-lib))'
],
setupFilesAfterEnv: ['<rootDir>/jestHelpers/setup.js']
}
3 changes: 2 additions & 1 deletion packages/cozy-sharing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:doc:react": "(cd ../.. && TARGET=cozy-sharing yarn build:doc:react)",
"deploy:doc": "(cd ../.. && yarn deploy:doc)",
"prepublishOnly": "yarn build",
"test": "env NODE_ENV=test jest --env=jest-environment-jsdom-sixteen",
"test": "env NODE_ENV=test jest",
"lint": "cd .. && yarn eslint --ext js,jsx packages/cozy-sharing",
"start": "yarn build --watch",
"watch": "yarn run start",
Expand Down Expand Up @@ -55,6 +55,7 @@
"cozy-client": "^51.6.1",
"cozy-ui": "^115.0.2",
"jest": "26.6.3",
"jest-environment-jsdom": "26.6.2",
"react": "16.12.0",
"react-dom": "16.13.0",
"react-router": "^5.0.1",
Expand Down

0 comments on commit b75bc51

Please sign in to comment.