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 = [
3131 '@marko/testing-library' ,
3232] as const ;
3333
34+ const USER_EVENT_MODULE = '@testing-library/user-event' ;
35+
3436const SYNC_QUERIES_VARIANTS = [
3537 'getBy' ,
3638 'getAllBy' ,
@@ -151,4 +153,5 @@ export {
151153 PRESENCE_MATCHERS ,
152154 ABSENCE_MATCHERS ,
153155 EVENT_HANDLER_METHODS ,
156+ USER_EVENT_MODULE ,
154157} ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424 isSupportedAccessor ,
2525} from '../node-utils/accessors' ;
2626
27- import { LIBRARY_MODULES } from '.' ;
27+ import { LIBRARY_MODULES , USER_EVENT_MODULE } from '.' ;
2828
2929interface ImportDetails {
3030 source : string ;
@@ -152,8 +152,6 @@ interface ResolvedTestingLibraryUserEventFn {
152152 local : string ;
153153}
154154
155- const USER_EVENT_PACKAGE = '@testing-library/user-event' ;
156-
157155export const resolveToTestingLibraryFn = <
158156 TMessageIds extends string ,
159157 TOptions extends readonly unknown [ ] ,
@@ -174,7 +172,7 @@ export const resolveToTestingLibraryFn = <
174172
175173 const customModuleSetting = context . settings [ 'testing-library/utils-module' ] ;
176174 if (
177- [ ...LIBRARY_MODULES , USER_EVENT_PACKAGE , customModuleSetting ] . some (
175+ [ ...LIBRARY_MODULES , USER_EVENT_MODULE , customModuleSetting ] . some (
178176 ( module ) => module === maybeImport . source
179177 )
180178 ) {
You can’t perform that action at this time.
0 commit comments