File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11npm-debug.log
22
3- /build /
3+ /build /node_modules /
4+
45/docs /api /
56/website /build /
67node_modules /
Original file line number Diff line number Diff line change 1+ const expected = {
2+ BrowserRouter : expect . any ( Function ) ,
3+ Link : expect . any ( Function ) ,
4+ // from react-router
5+ Router : expect . any ( Function ) ,
6+ Route : expect . any ( Function ) ,
7+ Routes : expect . any ( Function ) ,
8+ MemoryRouter : expect . any ( Function ) ,
9+ Outlet : expect . any ( Function ) ,
10+ useRoutes : expect . any ( Function ) ,
11+ useParams : expect . any ( Function ) ,
12+ useResolvedPath : expect . any ( Function ) ,
13+ useOutlet : expect . any ( Function ) ,
14+ useOutletContext : expect . any ( Function ) ,
15+ } ;
16+
17+ describe ( "react-router-dom" , ( ) => {
18+ it ( "requires" , ( ) => {
19+ expect ( require ( "react-router-dom" ) ) . toMatchObject ( expected ) ;
20+ } ) ;
21+
22+ it ( "imports" , ( ) => {
23+ return expect ( import ( "react-router-dom" ) ) . resolves . toMatchObject ( expected ) ;
24+ } ) ;
25+ } ) ;
Original file line number Diff line number Diff line change 1+ const expected = {
2+ Router : expect . any ( Function ) ,
3+ Route : expect . any ( Function ) ,
4+ Routes : expect . any ( Function ) ,
5+ MemoryRouter : expect . any ( Function ) ,
6+ Outlet : expect . any ( Function ) ,
7+ useRoutes : expect . any ( Function ) ,
8+ useParams : expect . any ( Function ) ,
9+ useResolvedPath : expect . any ( Function ) ,
10+ useOutlet : expect . any ( Function ) ,
11+ useOutletContext : expect . any ( Function ) ,
12+ } ;
13+
14+ describe ( "react-router" , ( ) => {
15+ it ( "requires" , ( ) => {
16+ expect ( require ( "react-router" ) ) . toMatchObject ( expected ) ;
17+ } ) ;
18+
19+ it ( "imports" , ( ) => {
20+ return expect ( import ( "react-router" ) ) . resolves . toMatchObject ( expected ) ;
21+ } ) ;
22+ } ) ;
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ testMatch : [ "**/__tests__/*-test.[jt]s?(x)" ]
3+ } ;
Original file line number Diff line number Diff line change 7373 },
7474 "jest" : {
7575 "projects" : [
76- " <rootDir>/packages/*"
76+ " <rootDir>/packages/*" ,
77+ " <rootDir>/build"
7778 ]
7879 },
7980 "filesize" : {
You can’t perform that action at this time.
0 commit comments