From bcb81e936bf3e74c0a503382076ef1b8617e263f Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Thu, 12 Dec 2024 17:42:56 +0100 Subject: [PATCH] Updated mock --- src/plugins/piral-lazy/src/create.test.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/piral-lazy/src/create.test.tsx b/src/plugins/piral-lazy/src/create.test.tsx index c25443f4c..de9161232 100644 --- a/src/plugins/piral-lazy/src/create.test.tsx +++ b/src/plugins/piral-lazy/src/create.test.tsx @@ -8,6 +8,11 @@ import { render, act } from '@testing-library/react'; import { StateContext } from 'piral-core'; import { createLazyApi } from './create'; +vitest.mock('piral-core/app.codegen', () => ({ + applyStyle: vitest.fn(), + fillDependencies: vitest.fn(), +})); + function createMockContainer() { const state = create(() => ({ app: {