File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ const LIBRARY_MODULES = [
31
31
'@marko/testing-library' ,
32
32
] as const ;
33
33
34
+ const USER_EVENT_MODULE = '@testing-library/user-event' ;
35
+
34
36
const SYNC_QUERIES_VARIANTS = [
35
37
'getBy' ,
36
38
'getAllBy' ,
@@ -151,4 +153,5 @@ export {
151
153
PRESENCE_MATCHERS ,
152
154
ABSENCE_MATCHERS ,
153
155
EVENT_HANDLER_METHODS ,
156
+ USER_EVENT_MODULE ,
154
157
} ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
24
24
isSupportedAccessor ,
25
25
} from '../node-utils/accessors' ;
26
26
27
- import { LIBRARY_MODULES } from '.' ;
27
+ import { LIBRARY_MODULES , USER_EVENT_MODULE } from '.' ;
28
28
29
29
interface ImportDetails {
30
30
source : string ;
@@ -152,8 +152,6 @@ interface ResolvedTestingLibraryUserEventFn {
152
152
local : string ;
153
153
}
154
154
155
- const USER_EVENT_PACKAGE = '@testing-library/user-event' ;
156
-
157
155
export const resolveToTestingLibraryFn = <
158
156
TMessageIds extends string ,
159
157
TOptions extends readonly unknown [ ] ,
@@ -174,7 +172,7 @@ export const resolveToTestingLibraryFn = <
174
172
175
173
const customModuleSetting = context . settings [ 'testing-library/utils-module' ] ;
176
174
if (
177
- [ ...LIBRARY_MODULES , USER_EVENT_PACKAGE , customModuleSetting ] . some (
175
+ [ ...LIBRARY_MODULES , USER_EVENT_MODULE , customModuleSetting ] . some (
178
176
( module ) => module === maybeImport . source
179
177
)
180
178
) {
You can’t perform that action at this time.
0 commit comments