@@ -31,10 +31,10 @@ make your test util file accessible without using relative paths.
31
31
The example below sets up data providers using the [ ` wrapper ` ] ( api.mdx#wrapper )
32
32
option to ` render ` .
33
33
34
- <Tabs groupId = " test-utils" defaultValue = " jsx " values = { [ {label: ' JavaScript' ,
35
- value: ' jsx ' }, {label: ' TypeScript' , value: ' tsx ' }, ]} >
34
+ <Tabs groupId = " test-utils" defaultValue = " js " values = { [ {label: ' JavaScript' ,
35
+ value: ' js ' }, {label: ' TypeScript' , value: ' ts ' }, ]} >
36
36
37
- <TabItem value = " jsx " >
37
+ <TabItem value = " js " >
38
38
39
39
``` diff title="my-component.test.jsx"
40
40
- import { render, fireEvent } from '@testing-library/react';
@@ -70,7 +70,7 @@ export {customRender as render}
70
70
71
71
</TabItem >
72
72
73
- <TabItem value = " tsx " >
73
+ <TabItem value = " ts " >
74
74
75
75
``` diff title="my-component.test.tsx"
76
76
- import { render, fireEvent } from '@testing-library/react';
@@ -250,10 +250,10 @@ passing a [`queries`](api.mdx#render-options) option.
250
250
If you want to add custom queries globally, you can do this by defining your
251
251
customized ` render ` , ` screen ` and ` within ` methods:
252
252
253
- <Tabs groupId = " test-utils" defaultValue = " jsx " values = { [ {label: ' JavaScript' ,
254
- value: ' jsx ' }, {label: ' TypeScript' , value: ' tsx ' }, ]} >
253
+ <Tabs groupId = " test-utils" defaultValue = " js " values = { [ {label: ' JavaScript' ,
254
+ value: ' js ' }, {label: ' TypeScript' , value: ' ts ' }, ]} >
255
255
256
- <TabItem value = " jsx " >
256
+ <TabItem value = " js " >
257
257
258
258
``` js title="test-utils.js"
259
259
import {render , queries , within } from ' @testing-library/react'
@@ -278,7 +278,7 @@ export {customScreen as screen, customWithin as within, customRender as render}
278
278
279
279
</TabItem >
280
280
281
- <TabItem value = " tsx " >
281
+ <TabItem value = " ts " >
282
282
283
283
``` ts title="test-utils.ts"
284
284
import {render , queries , within , RenderOptions } from ' @testing-library/react'
0 commit comments