fix lk usage in test

This commit is contained in:
Timo
2025-02-20 06:33:01 +03:00
parent f111c64264
commit 4015efa6c6
3 changed files with 8 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
"@formatjs/intl-segmenter": "^11.7.3", "@formatjs/intl-segmenter": "^11.7.3",
"@livekit/components-core": "^0.12.0", "@livekit/components-core": "^0.12.0",
"@livekit/components-react": "^2.0.0", "@livekit/components-react": "^2.0.0",
"@livekit/protocol": "^1.33.0",
"@opentelemetry/api": "^1.4.0", "@opentelemetry/api": "^1.4.0",
"@opentelemetry/core": "^1.25.1", "@opentelemetry/core": "^1.25.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.57.0", "@opentelemetry/exporter-trace-otlp-http": "^0.57.0",

View File

@@ -13,7 +13,8 @@ import {
type TrackReference, type TrackReference,
type TrackReferencePlaceholder, type TrackReferencePlaceholder,
} from "@livekit/components-core"; } from "@livekit/components-core";
import { Track, TrackPublication } from "livekit-client"; import { LocalTrackPublication, Track } from "livekit-client";
import { TrackInfo } from "@livekit/protocol";
import { type ComponentProps } from "react"; import { type ComponentProps } from "react";
import { MediaView } from "./MediaView"; import { MediaView } from "./MediaView";
@@ -28,7 +29,10 @@ describe("MediaView", () => {
}; };
const trackReference: TrackReference = { const trackReference: TrackReference = {
...trackReferencePlaceholder, ...trackReferencePlaceholder,
publication: new TrackPublication(Track.Kind.Video, "id", "name"), publication: new LocalTrackPublication(
Track.Kind.Video,
new TrackInfo({ sid: "id", name: "name" }),
),
}; };
const baseProps: ComponentProps<typeof MediaView> = { const baseProps: ComponentProps<typeof MediaView> = {

View File

@@ -1756,7 +1756,7 @@
resolved "https://registry.yarnpkg.com/@livekit/mutex/-/mutex-1.1.1.tgz#72492b611d55be8130ba2271b7a436d94b1bc6d4" resolved "https://registry.yarnpkg.com/@livekit/mutex/-/mutex-1.1.1.tgz#72492b611d55be8130ba2271b7a436d94b1bc6d4"
integrity sha512-EsshAucklmpuUAfkABPxJNhzj9v2sG7JuzFDL4ML1oJQSV14sqrpTYnsaOudMAw9yOaW53NU3QQTlUQoRs4czw== integrity sha512-EsshAucklmpuUAfkABPxJNhzj9v2sG7JuzFDL4ML1oJQSV14sqrpTYnsaOudMAw9yOaW53NU3QQTlUQoRs4czw==
"@livekit/protocol@1.33.0": "@livekit/protocol@1.33.0", "@livekit/protocol@^1.33.0":
version "1.33.0" version "1.33.0"
resolved "https://registry.yarnpkg.com/@livekit/protocol/-/protocol-1.33.0.tgz#b8dfcf82ca501e747533d519e51b5c80176bf03e" resolved "https://registry.yarnpkg.com/@livekit/protocol/-/protocol-1.33.0.tgz#b8dfcf82ca501e747533d519e51b5c80176bf03e"
integrity sha512-361mBlFgI3nvn8oSQIL38gDUBGbOSwsEOqPgX0c1Jwz75/sD/TTvPeAM4zAz6OrV5Q4vI4Ruswecnyv5SG4oig== integrity sha512-361mBlFgI3nvn8oSQIL38gDUBGbOSwsEOqPgX0c1Jwz75/sD/TTvPeAM4zAz6OrV5Q4vI4Ruswecnyv5SG4oig==