Skip to content

Commit 8b426d0

Browse files
committed
03/01: rename the custom context file
1 parent cdc550a commit 8b426d0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

exercises/03.best-practices/01.solution.network-mocking/src/discount-code-form.browser.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { page, userEvent } from '@vitest/browser/context'
22
import { render } from 'vitest-browser-react'
33
import { http, HttpResponse } from 'msw'
4+
import { test } from '../test-extend.js'
45
import { DiscountCodeForm, type Discount } from './discount-code-form.js'
56

6-
import { test } from '../my-test.js'
7-
87
test('applies a discount code', async () => {
98
render(<DiscountCodeForm />)
109

@@ -21,7 +20,7 @@ test('applies a discount code', async () => {
2120
.toBeVisible()
2221
})
2322

24-
test('displays a warning on legacy discount codes', async ({ worker }) => {
23+
test('displays a warning for legacy discount codes', async ({ worker }) => {
2524
worker.use(
2625
http.post<never, string, Discount>(
2726
'https://api.example.com/discount/code',

0 commit comments

Comments
 (0)