Commit 50d5f25 1 parent 6ac2cd1 commit 50d5f25 Copy full SHA for 50d5f25
File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
"start" : " cross-env NODE_ENV=production node src/index.ts" ,
11
11
"dev" : " cross-env NODE_ENV=development nodemon --files src/index.ts" ,
12
12
"start:test" : " cross-env NODE_ENV=test ts-node --files src/index.ts" ,
13
+ "start:cypress-test" : " cross-env NODE_ENV=cypress ts-node --files src/index.ts" ,
13
14
"start:dev" : " cross-env NODE_ENV=development ts-node --files src/index.ts" ,
14
15
"docker:mongo" : " docker-compose -f docker-compose.dev.yml up -d" ,
15
16
"lint" : " eslint ." ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const app = express();
14
14
15
15
if ( NODE_ENV === 'development' ) {
16
16
mongodbConnect ( config . DEV_MONGODB_URI ! ) ;
17
- } else if ( NODE_ENV === 'test ' ) {
17
+ } else if ( NODE_ENV === 'cypress ' ) {
18
18
( async ( ) => {
19
19
await testMongodb . connect ( ) ;
20
20
} ) ( ) ;
Original file line number Diff line number Diff line change 35
35
"test" : " react-scripts test" ,
36
36
"eject" : " react-scripts eject" ,
37
37
"server:dev" : " cd ../backend && npm run start:dev" ,
38
- "server:test" : " cd ../backend && npm run start:test" ,
38
+ "server:test" : " cd ../backend && npm run start:cypress- test" ,
39
39
"docker:mongo" : " cd ../backend && npm run docker:mongo" ,
40
40
"start:dev" : " concurrently \" npm run docker:mongo\" \" npm run server:dev\" \" npm start\" " ,
41
41
"cypress:open" : " cypress open" ,
You can’t perform that action at this time.
0 commit comments