File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1- import {
2- LIBRARY_MODULES ,
3- OLD_LIBRARY_MODULES ,
4- USER_EVENT_MODULE ,
5- } from '../../../lib/utils' ;
61import {
72 isCustomTestingLibraryModule ,
83 isOfficialTestingLibraryModule ,
94 isTestingLibraryModule ,
105} from '../../../lib/utils/is-testing-library-module' ;
116
7+ const OLD_LIBRARY_MODULES = [
8+ 'dom-testing-library' ,
9+ 'vue-testing-library' ,
10+ 'react-testing-library' ,
11+ ] as const ;
12+
13+ const LIBRARY_MODULES = [
14+ '@testing-library/dom' ,
15+ '@testing-library/angular' ,
16+ '@testing-library/react' ,
17+ '@testing-library/preact' ,
18+ '@testing-library/vue' ,
19+ '@testing-library/svelte' ,
20+ '@marko/testing-library' ,
21+ ] as const ;
22+
23+ const USER_EVENT_MODULE = '@testing-library/user-event' ;
24+
1225describe ( 'isOfficialTestingLibraryModule' , ( ) => {
1326 it . each ( [ ...OLD_LIBRARY_MODULES , ...LIBRARY_MODULES , USER_EVENT_MODULE ] ) (
1427 'returns true when arg is "%s"' ,
You can’t perform that action at this time.
0 commit comments