diff --git a/packages/core/tests/cache.test.ts b/packages/core/tests/cache.test.ts index 684e32ba4d..4a42d6ec55 100644 --- a/packages/core/tests/cache.test.ts +++ b/packages/core/tests/cache.test.ts @@ -1,19 +1,6 @@ import { createStubRsbuild } from '@scripts/test-helper'; import { pluginCache } from '../src/plugins/cache'; -vi.mock('../src/helpers.js', async (importOriginal) => { - const mod = await importOriginal(); - return { - ...mod, - findExists: (files: string[]) => { - if (files.some((file) => file.includes('tailwind'))) { - return '/root/tailwind.config.ts'; - } - return mod.findExists(files); - }, - }; -}); - describe('plugin-cache', () => { const cases = [ { diff --git a/packages/core/tests/html.test.ts b/packages/core/tests/html.test.ts index a2986deb6f..25857b3ac2 100644 --- a/packages/core/tests/html.test.ts +++ b/packages/core/tests/html.test.ts @@ -3,14 +3,6 @@ import type { HtmlConfig, InternalContext } from '../src'; import { pluginEntry } from '../src/plugins/entry'; import { pluginHtml } from '../src/plugins/html'; -vi.mock('../src/helpers.js', async (importOriginal) => { - const mod = await importOriginal(); - return { - ...mod, - isFileExists: async () => true, - }; -}); - describe('plugin-html', () => { const stubContext = {} as InternalContext;