diff --git a/tests/integration/netlify-forms.test.ts b/tests/integration/netlify-forms.test.ts index 0087d5d9ca..c8749b8e1f 100644 --- a/tests/integration/netlify-forms.test.ts +++ b/tests/integration/netlify-forms.test.ts @@ -20,8 +20,6 @@ beforeEach(async (ctx) => { }) it('should fail build when netlify forms are used', async (ctx) => { - const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) - await createFixture('netlify-forms', ctx) const runPluginPromise = runPlugin(ctx) @@ -32,11 +30,9 @@ it('should fail build when netlify forms are used', async (c }) it('should not fail build when netlify forms are used with workaround', async (ctx) => { - const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) - await createFixture('netlify-forms-workaround', ctx) const runPluginPromise = runPlugin(ctx) - await expect(runPluginPromise).resolves + await expect(runPluginPromise).resolves.not.toThrow() })