Merged in chore/fix-tests (pull request #3430)
Chore/fix tests * chore: Upgrade nextjs@16.1.1 * chore: upgrade next@16.1.1 * upgrade underlying types * merge * Fix broken tests * bump @swc/plugin-formatjs to latest version * bump sentry * transpile "import-in-the-middle" & "require-in-the-middle" * revert next@16.1.1 upgrade * revert transpilation addition * .
This commit is contained in:
@@ -7,6 +7,11 @@ import { config as videoPlayerConfig } from "./variants"
|
||||
const meta: Meta<typeof VideoPlayer> = {
|
||||
title: "Core Components/Video/VideoPlayer",
|
||||
component: VideoPlayer,
|
||||
beforeEach: () => {
|
||||
// Mock video methods to prevent actual playback
|
||||
window.HTMLMediaElement.prototype.play = () => Promise.resolve()
|
||||
window.HTMLMediaElement.prototype.pause = () => {}
|
||||
},
|
||||
|
||||
parameters: {
|
||||
docs: {
|
||||
|
||||
Reference in New Issue
Block a user