From 14803825683d3e2bd7484fa8fdff31896001ce3f Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 16 Oct 2024 13:28:00 +0530 Subject: [PATCH] await all test steps --- .../02.solution.show-boundary/error-boundary.test.ts | 2 +- exercises/09.errors/03.solution.reset/error-boundary.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/09.errors/02.solution.show-boundary/error-boundary.test.ts b/exercises/09.errors/02.solution.show-boundary/error-boundary.test.ts index 465fde19f..b7393eda9 100644 --- a/exercises/09.errors/02.solution.show-boundary/error-boundary.test.ts +++ b/exercises/09.errors/02.solution.show-boundary/error-boundary.test.ts @@ -6,7 +6,7 @@ const user = userEvent.setup() import './index.tsx' -testStep('Error boundary is rendered after form submission', async () => { +await testStep('Error boundary is rendered after form submission', async () => { // submit the form await user.click(await screen.findByRole('button', { name: /submit/i })) diff --git a/exercises/09.errors/03.solution.reset/error-boundary.test.ts b/exercises/09.errors/03.solution.reset/error-boundary.test.ts index 0c7c9049f..1c32bb199 100644 --- a/exercises/09.errors/03.solution.reset/error-boundary.test.ts +++ b/exercises/09.errors/03.solution.reset/error-boundary.test.ts @@ -6,7 +6,7 @@ const user = userEvent.setup() import './index.tsx' -testStep('Error boundary is rendered after form submission', async () => { +await testStep('Error boundary is rendered after form submission', async () => { // submit the form await user.click(await screen.findByRole('button', { name: /submit/i })) @@ -24,7 +24,7 @@ testStep('Error boundary is rendered after form submission', async () => { expect(form).toBeNull() }) -testStep('Clicking "Try again" resets the error boundary', async () => { +await testStep('Clicking "Try again" resets the error boundary', async () => { // Click the "Try again" button const tryAgainButton = await screen.findByRole('button', { name: /try again/i,