mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
Merge pull request #16326 from nextcloud/dependabot/npm_and_yarn/vitest-4.0.8
build(deps-dev): Bump vitest from 3.2.4 to 4.0.8
This commit is contained in:
commit
1c80fb0a11
3 changed files with 941 additions and 1102 deletions
2008
package-lock.json
generated
2008
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -94,7 +94,7 @@
|
||||||
"@rspack/plugin-node-polyfill": "^0.5.8",
|
"@rspack/plugin-node-polyfill": "^0.5.8",
|
||||||
"@total-typescript/ts-reset": "^0.6.1",
|
"@total-typescript/ts-reset": "^0.6.1",
|
||||||
"@vitejs/plugin-vue": "^6.0.1",
|
"@vitejs/plugin-vue": "^6.0.1",
|
||||||
"@vitest/coverage-v8": "^3.2.4",
|
"@vitest/coverage-v8": "^4.0.9",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
"@vue/tsconfig": "^0.8.1",
|
"@vue/tsconfig": "^0.8.1",
|
||||||
"css-loader": "^7.1.2",
|
"css-loader": "^7.1.2",
|
||||||
|
|
@ -102,10 +102,11 @@
|
||||||
"jsdom": "^27.0.1",
|
"jsdom": "^27.0.1",
|
||||||
"openapi-typescript": "^7.10.1",
|
"openapi-typescript": "^7.10.1",
|
||||||
"regenerator-runtime": "^0.14.1",
|
"regenerator-runtime": "^0.14.1",
|
||||||
|
"sass": "^1.94.0",
|
||||||
"sass-loader": "^16.0.6",
|
"sass-loader": "^16.0.6",
|
||||||
"stylelint-use-logical": "^2.1.2",
|
"stylelint-use-logical": "^2.1.2",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vitest": "^3.2.4",
|
"vitest": "^4.0.9",
|
||||||
"vue-loader": "^17.4.2",
|
"vue-loader": "^17.4.2",
|
||||||
"wasm-check": "^2.1.2"
|
"wasm-check": "^2.1.2"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -50,12 +50,6 @@ vi.mock('@nextcloud/capabilities', () => ({
|
||||||
|
|
||||||
HTMLAudioElement.prototype.setSinkId = vi.fn()
|
HTMLAudioElement.prototype.setSinkId = vi.fn()
|
||||||
|
|
||||||
window.IntersectionObserver = vi.fn(() => ({
|
|
||||||
observe: vi.fn(),
|
|
||||||
unobserve: vi.fn(),
|
|
||||||
disconnect: vi.fn(),
|
|
||||||
}))
|
|
||||||
|
|
||||||
window._oc_webroot = '/nc-webroot' // used by getRootUrl() | since @nextcloud/router 2.2.1
|
window._oc_webroot = '/nc-webroot' // used by getRootUrl() | since @nextcloud/router 2.2.1
|
||||||
|
|
||||||
global.appName = 'spreed'
|
global.appName = 'spreed'
|
||||||
|
|
@ -122,16 +116,22 @@ function myArrayBuffer() {
|
||||||
|
|
||||||
global.Blob.prototype.arrayBuffer = Blob.prototype.arrayBuffer || myArrayBuffer
|
global.Blob.prototype.arrayBuffer = Blob.prototype.arrayBuffer || myArrayBuffer
|
||||||
|
|
||||||
global.BroadcastChannel = vi.fn(() => ({
|
global.BroadcastChannel = vi.fn(class {
|
||||||
postMessage: vi.fn(),
|
postMessage = vi.fn()
|
||||||
addEventListener: vi.fn(),
|
addEventListener = vi.fn()
|
||||||
}))
|
})
|
||||||
|
|
||||||
global.ResizeObserver = vi.fn(() => ({
|
global.IntersectionObserver = vi.fn(class {
|
||||||
observe: vi.fn(),
|
observe = vi.fn()
|
||||||
unobserve: vi.fn(),
|
unobserve = vi.fn()
|
||||||
disconnect: vi.fn(),
|
disconnect = vi.fn()
|
||||||
}))
|
})
|
||||||
|
|
||||||
|
global.ResizeObserver = vi.fn(class {
|
||||||
|
observe = vi.fn()
|
||||||
|
unobserve = vi.fn()
|
||||||
|
disconnect = vi.fn()
|
||||||
|
})
|
||||||
|
|
||||||
global.structuredClone = vi.fn((val) => JSON.parse(JSON.stringify(val)))
|
global.structuredClone = vi.fn((val) => JSON.parse(JSON.stringify(val)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue