Skip to content

Commit dac24e9

Browse files
authored
docs: add reference to applyAccept from upload() (testing-library#1144)
1 parent 6bb14e8 commit dac24e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/user-event/api-utility.mdx

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ upload(
150150
Change a file input as if a user clicked it and selected files in the resulting
151151
file upload dialog.
152152

153+
> Files that don't match an `accept` property will be automatically discarded,
154+
> unless [`applyAccept`](options.mdx#applyaccept) is set to `false`.
155+
153156
```jsx
154157
test('upload file', async () => {
155158
render(

0 commit comments

Comments
 (0)