Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@testing-library/dom": "^8.16.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.1",
"@testing-library/user-event": "^14.4.2",
"@types/file-saver": "^2.0.5",
"@types/jest": "^28.1.6",
"@types/node": "^16.11.7",
Expand Down
4 changes: 3 additions & 1 deletion test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ThunkAction, configureStore } from '@reduxjs/toolkit';
import { I18nContext, I18nManager } from '@shopify/react-i18n';
import { RenderResult, render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import type { UserEvent } from '@testing-library/user-event/dist/types/setup';
import React, { ReactElement } from 'react';
import { Provider } from 'react-redux';
import { AnyAction, PreloadedState, legacy_createStore as createStore } from 'redux';
Expand All @@ -15,6 +14,9 @@ import { UUID } from '../src/fileStorage';
import { RootState, rootReducer } from '../src/reducers';
import { RootSagaContext } from '../src/sagas';

// HACK: not a public type so can't be imported directly
type UserEvent = ReturnType<typeof userEvent.setup>;

export class AsyncSaga {
private channel: MulticastChannel<AnyAction>;
private dispatches: AnyAction[];
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ __metadata:
"@testing-library/dom": ^8.16.0
"@testing-library/jest-dom": ^5.16.5
"@testing-library/react": ^12.1.5
"@testing-library/user-event": ^14.4.1
"@testing-library/user-event": ^14.4.2
"@types/file-saver": ^2.0.5
"@types/jest": ^28.1.6
"@types/node": ^16.11.7
Expand Down Expand Up @@ -4238,12 +4238,12 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/user-event@npm:^14.4.1":
version: 14.4.1
resolution: "@testing-library/user-event@npm:14.4.1"
"@testing-library/user-event@npm:^14.4.2":
version: 14.4.2
resolution: "@testing-library/user-event@npm:14.4.2"
peerDependencies:
"@testing-library/dom": ">=7.21.4"
checksum: 01f2318097d64ab99c400a2825680b241451c7d87e69fbda9135b7c896d4205afff46b55b25fcfff47542732d38918c6ca49d2e937892931f6f93346ccbc1950
checksum: 66364f2c503ddc01f5fdf98507aecf40b4edf0b9c140332aaf0161b1d7d52dea8a5d93baee927ae955bd7d6d58be0c12367a2cff924bdb4232746f0e614f9e03
languageName: node
linkType: hard

Expand Down