Skip to content

Commit 3531281

Browse files
dependabot[bot]dependabot-fixdlech
authored
build(deps): bump @testing-library/user-event from 14.4.1 to 14.4.2 (pybricks#1035)
* build(deps): bump @testing-library/user-event from 14.4.1 to 14.4.2 Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.4.1 to 14.4.2. - [Release notes](https://github.com/testing-library/user-event/releases) - [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md) - [Commits](testing-library/user-event@v14.4.1...v14.4.2) --- updated-dependencies: - dependency-name: "@testing-library/user-event" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * [dependabot skip] Fix yarn.lock * test/index: fix breaking change from testing-library/user-event update Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot-fix <dependabot-fix@example.com> Co-authored-by: David Lechner <david@pybricks.com>
1 parent 7ba37e7 commit 3531281

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@testing-library/dom": "^8.16.0",
2424
"@testing-library/jest-dom": "^5.16.5",
2525
"@testing-library/react": "^12.1.5",
26-
"@testing-library/user-event": "^14.4.1",
26+
"@testing-library/user-event": "^14.4.2",
2727
"@types/file-saver": "^2.0.5",
2828
"@types/jest": "^28.1.6",
2929
"@types/node": "^16.11.7",

test/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { ThunkAction, configureStore } from '@reduxjs/toolkit';
66
import { I18nContext, I18nManager } from '@shopify/react-i18n';
77
import { RenderResult, render } from '@testing-library/react';
88
import userEvent from '@testing-library/user-event';
9-
import type { UserEvent } from '@testing-library/user-event/dist/types/setup';
109
import React, { ReactElement } from 'react';
1110
import { Provider } from 'react-redux';
1211
import { AnyAction, PreloadedState, legacy_createStore as createStore } from 'redux';
@@ -15,6 +14,9 @@ import { UUID } from '../src/fileStorage';
1514
import { RootState, rootReducer } from '../src/reducers';
1615
import { RootSagaContext } from '../src/sagas';
1716

17+
// HACK: not a public type so can't be imported directly
18+
type UserEvent = ReturnType<typeof userEvent.setup>;
19+
1820
export class AsyncSaga {
1921
private channel: MulticastChannel<AnyAction>;
2022
private dispatches: AnyAction[];

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,7 @@ __metadata:
23672367
"@testing-library/dom": ^8.16.0
23682368
"@testing-library/jest-dom": ^5.16.5
23692369
"@testing-library/react": ^12.1.5
2370-
"@testing-library/user-event": ^14.4.1
2370+
"@testing-library/user-event": ^14.4.2
23712371
"@types/file-saver": ^2.0.5
23722372
"@types/jest": ^28.1.6
23732373
"@types/node": ^16.11.7
@@ -4238,12 +4238,12 @@ __metadata:
42384238
languageName: node
42394239
linkType: hard
42404240

4241-
"@testing-library/user-event@npm:^14.4.1":
4242-
version: 14.4.1
4243-
resolution: "@testing-library/user-event@npm:14.4.1"
4241+
"@testing-library/user-event@npm:^14.4.2":
4242+
version: 14.4.2
4243+
resolution: "@testing-library/user-event@npm:14.4.2"
42444244
peerDependencies:
42454245
"@testing-library/dom": ">=7.21.4"
4246-
checksum: 01f2318097d64ab99c400a2825680b241451c7d87e69fbda9135b7c896d4205afff46b55b25fcfff47542732d38918c6ca49d2e937892931f6f93346ccbc1950
4246+
checksum: 66364f2c503ddc01f5fdf98507aecf40b4edf0b9c140332aaf0161b1d7d52dea8a5d93baee927ae955bd7d6d58be0c12367a2cff924bdb4232746f0e614f9e03
42474247
languageName: node
42484248
linkType: hard
42494249

0 commit comments

Comments
 (0)