@@ -244,14 +244,14 @@ import {ThemeProvider} from 'my-ui-lib'
244
244
import {TranslationProvider } from ' my-i18n-lib'
245
245
import defaultStrings from ' i18n/en-x-default'
246
246
247
- const customRender = (node , ... options ) => {
247
+ const customRender = (node , options ) => {
248
248
return render (
249
249
< ThemeProvider theme= " light" >
250
250
< TranslationProvider messages= {defaultStrings}>
251
251
{node}
252
252
< / TranslationProvider>
253
253
< / ThemeProvider> ,
254
- ... options,
254
+ options,
255
255
)
256
256
}
257
257
@@ -314,7 +314,7 @@ return value of the customRender.
314
314
``` js
315
315
// test-utils.js
316
316
317
- const customRender = (node , ... options ) => {
317
+ const customRender = (node , options ) => {
318
318
const rendered = render (< div> {node}< / div> , options)
319
319
return {
320
320
... rendered,
@@ -339,7 +339,7 @@ You can use CommonJS modules instead of ES modules, which should work in Node:
339
339
// test-utils.js
340
340
const rtl = require (' react-testing-library' )
341
341
342
- const customRender = (node , ... options ) => {
342
+ const customRender = (node , options ) => {
343
343
return rtl .render (< Something> {node}< / Something> )
344
344
}
345
345
@@ -640,8 +640,8 @@ export function getByTestId(...args) {
640
640
return queryHelpers .firstResultOrNull (getAllByTestId , ... args )
641
641
}
642
642
643
- const customRender = (container , ... options ) => {
644
- const utils = render (container , ... options )
643
+ const customRender = (container , options ) => {
644
+ const utils = render (container , options )
645
645
646
646
return {
647
647
... utils ,
0 commit comments