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' ;
6
1
import {
7
2
isCustomTestingLibraryModule ,
8
3
isOfficialTestingLibraryModule ,
9
4
isTestingLibraryModule ,
10
5
} from '../../../lib/utils/is-testing-library-module' ;
11
6
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
+
12
25
describe ( 'isOfficialTestingLibraryModule' , ( ) => {
13
26
it . each ( [ ...OLD_LIBRARY_MODULES , ...LIBRARY_MODULES , USER_EVENT_MODULE ] ) (
14
27
'returns true when arg is "%s"' ,
You can’t perform that action at this time.
0 commit comments