Skip to content

Commit 5443088

Browse files
Merge pull request #11626 from nextcloud/backport/11615/stable5.4
[stable5.4] fix(deps): bump @nextcloud/vue to ^8.30.0
2 parents 8b61e64 + ccf36e0 commit 5443088

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
module.exports = {
66
preset: 'ts-jest',
7-
testEnvironment: 'jest-environment-jsdom',
7+
testEnvironment: './src/tests/jsdom-structured-clone-env.js',
88
moduleFileExtensions: [
99
'js',
1010
'jsx',

package-lock.json

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@nextcloud/router": "^3.0.1",
6363
"@nextcloud/sharing": "^0.2.5",
6464
"@nextcloud/timezones": "^0.2.0",
65-
"@nextcloud/vue": "^8.28.0",
65+
"@nextcloud/vue": "^8.30.0",
6666
"@pinia/testing": "^0.1.7",
6767
"@riophae/vue-treeselect": "^0.4.0",
6868
"@vue/babel-preset-app": "^5.0.8",
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
import JSDOMEnvironment from 'jest-environment-jsdom'
7+
8+
export default class FixJSDOMEnvironment extends JSDOMEnvironment {
9+
10+
constructor(...args) {
11+
super(...args)
12+
13+
// Fix missing support for structuredClone() in jsdom
14+
// Ref https://github.com/jsdom/jsdom/issues/3363
15+
this.global.structuredClone = structuredClone
16+
}
17+
}

0 commit comments

Comments
 (0)