-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyFiles.js
More file actions
124 lines (110 loc) · 4.54 KB
/
myFiles.js
File metadata and controls
124 lines (110 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// if(auth.isLoggedIn){
// if(auth.userID === 1){
// return (
// <ChakraProvider>
// <Router>
// <Navbar Auth={auth} />
// <Switch >
// {/* Common Routes */}
// <Route path="/rating" exact component={Rating} />
// <Route path="/" component={Admin} />
// </Switch>
// </Router>
// </ChakraProvider>
// );
// } else {
// return (
// <ChakraProvider>
// <Router>
// <Navbar Auth={auth} />
// <Switch >
// {/* Common Routes */}
// <Route path="/telecommunication" exact component={Telecommunication} exact/>
// <Route path="/healthcare" exact component={Healthcare} exact/>
// <Route path="/transport" exact component={Transport} exact/>
// <Route path="/chatbothc" exact component={ChatbotHC} />
// <Route path="/chatbotpt" exact component={ChatbotPT} />
// <Route path="/chatbottc" exact component={ChatbotTC} />
// {/* <Route path="/profile/:id" exact component={Profile}/> */}
// <Route path="/profile" exact component={Profile} />
// <Route path="/rating" exact component={Rating} />
// <Route path="/admin" exact component={Admin} />
// <Route path="/" component={DomaineSelection} />
// </Switch>
// </Router>
// </ChakraProvider>
// );
// }
// } else {
// return(
// <ChakraProvider>
// <Router>
// <Navbar Auth={auth} />
// {/* add authentication to side nav */}
// {/* <SideNav /> */}
// <Switch>
// {/* Common Routes */}
// <Route path="/signUp" exact component={SignUp} />
// <Route path="/signin" exact component={ () => {return <SignIn setSignInClicked={setSignInClicked}/>}} />
// {/* <Route path="/domainselection" exact component={DomainSelection} exact/> */}
// <Route path="/" component={LandingPage} />
// </Switch>
// </Router>
// </ChakraProvider>
// );
// }
//react-scripts test
// return (
// <ChakraProvider>
// <Router>
// <Navbar Auth={auth} />
// <Switch >
// {/* Common Routes */}
// <Route path="/telecommunication" exact component={Telecommunication} exact/>
// <Route path="/healthcare" exact component={Healthcare} exact/>
// <Route path="/transport" exact component={Transport} exact/>
// <Route path="/chatbothc" exact component={ChatbotHC} />
// <Route path="/chatbotpt" exact component={ChatbotPT} />
// <Route path="/chatbottc" exact component={ChatbotTC} />
// {/* <Route path="/profile/:id" exact component={Profile}/> */}
// <Route path="/profile" exact component={Profile} />
// <Route path="/rating" exact component={Rating} />
// <Route path="/admin" exact component={Admin} />
// <Route path="/domain" component={DomaineSelection} />
// <Route path="/signUp" exact component={SignUp} />
// <Route path="/rating" exact component={Rating} />
// <Route path="/admin" exact component={Admin} />
// <Route path="/signin" exact component={ () => {return <SignIn setSignInClicked={setSignInClicked}/>}} />
// {/* <Route path="/domainselection" exact component={DomainSelection} exact/> */}
// <Route path="/" component={LandingPage} />
// </Switch>
// </Router>
// </ChakraProvider>
// );
// npm run test:CI
//To get the stats of you test coverage, you can run below command which will generate the coverage report inside “coverage/lcov-report/index.html” of project root folder
// npm run test -- --coverage --watchAll
// or
// npm run test:CI -- --coverage
// "jest": {
// ...,
// "reporters": [
// "default",
// "jest-html-reporters"
// ],
// ...
// }
// npm test coverage
//babelrc
// ///**
// * @jest-environment jsdom
// */
// "scripts": {
// "start": "react-scripts -r @cypress/instrument-cra start",
// "build": "react-scripts build",
// "test": "react-scripts test",
// "cy:open": "cypress open",
// "dev": "start-test 3000 cy:open",
// "eject": "react-scripts eject",
// "test:CI": "set CI=true &&react-scripts test --env=jsdom --testResultsProcessor=./node_modules/jest-html-reporter"
// },