diff --git a/assets/auto-imports.d.ts b/assets/auto-imports.d.ts index 09499763..66b8a29c 100644 --- a/assets/auto-imports.d.ts +++ b/assets/auto-imports.d.ts @@ -75,6 +75,7 @@ declare global { const locale: typeof import('./stores/settings')['locale'] const loggingContextKey: typeof import('./composable/logContext')['loggingContextKey'] const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] + const manualResetRef: typeof import('@vueuse/core')['manualResetRef'] const mapActions: typeof import('pinia')['mapActions'] const mapGetters: typeof import('pinia')['mapGetters'] const mapState: typeof import('pinia')['mapState'] @@ -122,6 +123,7 @@ declare global { const refAutoReset: typeof import('@vueuse/core')['refAutoReset'] const refDebounced: typeof import('@vueuse/core')['refDebounced'] const refDefault: typeof import('@vueuse/core')['refDefault'] + const refManualReset: typeof import('@vueuse/core')['refManualReset'] const refThrottled: typeof import('@vueuse/core')['refThrottled'] const refWithControl: typeof import('@vueuse/core')['refWithControl'] const resolveComponent: typeof import('vue')['resolveComponent'] @@ -472,6 +474,7 @@ declare module 'vue' { readonly locale: UnwrapRef readonly loggingContextKey: UnwrapRef readonly makeDestructurable: UnwrapRef + readonly manualResetRef: UnwrapRef readonly mapActions: UnwrapRef readonly mapGetters: UnwrapRef readonly mapState: UnwrapRef @@ -519,11 +522,11 @@ declare module 'vue' { readonly refAutoReset: UnwrapRef readonly refDebounced: UnwrapRef readonly refDefault: UnwrapRef + readonly refManualReset: UnwrapRef readonly refThrottled: UnwrapRef readonly refWithControl: UnwrapRef readonly resolveComponent: UnwrapRef readonly resolveRef: UnwrapRef - readonly resolveUnref: UnwrapRef readonly scrollContextKey: UnwrapRef readonly search: UnwrapRef readonly sessionHost: UnwrapRef diff --git a/assets/components/LogViewer/EventSource.spec.ts b/assets/components/LogViewer/EventSource.spec.ts index 2da0b2bd..ccb67d2c 100644 --- a/assets/components/LogViewer/EventSource.spec.ts +++ b/assets/components/LogViewer/EventSource.spec.ts @@ -29,17 +29,15 @@ describe("", () => { global.EventSource = EventSource; // @ts-ignore window.scrollTo = vi.fn(); - global.IntersectionObserver = vi.fn().mockImplementation( - class { - observe = vi.fn(); - disconnect = vi.fn(); - unobserve = vi.fn(); - takeRecords = vi.fn(); - root = null; - rootMargin = ""; - thresholds = []; - }, - ); + global.IntersectionObserver = class IntersectionObserver { + observe = vi.fn(); + disconnect = vi.fn(); + unobserve = vi.fn(); + takeRecords = vi.fn(); + root = null; + rootMargin = ""; + thresholds = []; + } as any; vi.useFakeTimers(); vi.setSystemTime(1560336942459); }); diff --git a/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap b/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap index 0fd59536..9800327e 100644 --- a/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap +++ b/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap @@ -7,7 +7,7 @@ exports[` > render html correctly > should render dates
  • -
  • -
  • -