ci: add isolated ARM proposal test lane
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { config } from '@vue/test-utils'
|
||||
import { vi } from 'vitest'
|
||||
import { displayVersion } from '@/utils/version'
|
||||
|
||||
// The app registers `$ver` as a global template property in main.ts
|
||||
@@ -7,3 +8,9 @@ import { displayVersion } from '@/utils/version'
|
||||
// component. Per-mount `global` options merge with this, so individual tests
|
||||
// keep their own plugins/mocks.
|
||||
config.global.mocks = { ...(config.global.mocks ?? {}), $ver: displayVersion }
|
||||
|
||||
// jsdom intentionally leaves media playback methods unimplemented and logs a
|
||||
// stack trace for every cleanup call. Components only need inert lifecycle
|
||||
// behavior in unit tests; media-specific suites can still replace these spies.
|
||||
HTMLMediaElement.prototype.pause = vi.fn()
|
||||
HTMLMediaElement.prototype.load = vi.fn()
|
||||
|
||||
Reference in New Issue
Block a user