Skip to content

Commit 71f4c22

Browse files
authored
Merge branch 'main' into release-please--branches--main--components--plugin-nextjs
2 parents 0a803ab + 8576a8e commit 71f4c22

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/integration/netlify-forms.test.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ beforeEach<FixtureTestContext>(async (ctx) => {
2020
})
2121

2222
it<FixtureTestContext>('should fail build when netlify forms are used', async (ctx) => {
23-
const warn = vi.spyOn(console, 'warn').mockImplementation(() => {})
24-
2523
await createFixture('netlify-forms', ctx)
2624

2725
const runPluginPromise = runPlugin(ctx)
@@ -32,11 +30,9 @@ it<FixtureTestContext>('should fail build when netlify forms are used', async (c
3230
})
3331

3432
it<FixtureTestContext>('should not fail build when netlify forms are used with workaround', async (ctx) => {
35-
const warn = vi.spyOn(console, 'warn').mockImplementation(() => {})
36-
3733
await createFixture('netlify-forms-workaround', ctx)
3834

3935
const runPluginPromise = runPlugin(ctx)
4036

41-
await expect(runPluginPromise).resolves
37+
await expect(runPluginPromise).resolves.not.toThrow()
4238
})

0 commit comments

Comments
 (0)