Skip to content

Commit 016eee5

Browse files
build: Update moonstone 2.13+ support (test-framework) (#305)
* build: Update moonstone module path in jest config * Use correct release version Co-authored-by: Félix Vallé <31360150+ffffffelix@users.noreply.github.com> * Fix spacing --------- Co-authored-by: Félix Vallé <31360150+ffffffelix@users.noreply.github.com>
1 parent 2eb46a0 commit 016eee5

File tree

3 files changed

+718
-357
lines changed

3 files changed

+718
-357
lines changed

packages/test-framework/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jahia/test-framework",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"scripts": {
55
"build": "jahia-babel-js",
66
"publish-script": "jahia-publish"
@@ -14,11 +14,17 @@
1414
],
1515
"dependencies": {
1616
"enzyme": "^3.11.0",
17-
"enzyme-adapter-react-16": "^1.12.1",
17+
"enzyme-adapter-react-16": "^1.15.8",
1818
"identity-obj-proxy": "^3.0.0"
1919
},
2020
"peerDependencies": {
21-
"babel-jest": "^24.9.0",
22-
"jest": "^24.9.0"
21+
"babel-jest": "^29.7.0",
22+
"jest": "^29.7.0",
23+
"@jahia/moonstone": ">=2.14.0"
24+
},
25+
"peerDependenciesMeta": {
26+
"@jahia/moonstone": {
27+
"optional": true
28+
}
2329
}
2430
}

packages/test-framework/src/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
'^react-i18next$': '<rootDir>/node_modules/@jahia/test-framework/build/js/__mocks__/react-i18next.js',
55
'\\.(css|scss)$': 'identity-obj-proxy',
66
'~/(.*)': '<rootDir>/src/javascript/$1',
7-
'@jahia/moonstone': '@jahia/moonstone/dist/lib/main'
7+
'@jahia/moonstone': '<rootDir>/node_modules/@jahia/moonstone/dist/index.cjs',
88
},
99
setupFilesAfterEnv: [
1010
'<rootDir>/node_modules/@jahia/test-framework/build/js/setupTests.js'

0 commit comments

Comments
 (0)