File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ PGPORT=
16
16
17
17
Two ways to seed the database.
18
18
19
- - Can run ` npm run migrate ` from within this project.
19
+ - Can run ` npm run test ` from within this project.
20
20
- Run a development server and issue a command ` curl -X POST http://localhost:3001/api/debug/reset ` .
21
21
22
22
## Api
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"start" : " node ./src/index.js" ,
8
8
"error" : " TEST_ERROR=true node ./src/index.js" ,
9
- "migrate " : " psql scheduler_development < ./src/db/schema/create.sql && psql scheduler_development < ./src/db/schema/development.sql" ,
10
- "test:migrate " : " psql -o /dev/null scheduler_test < ./src/db/schema/create.sql && psql -o /dev/null scheduler_test < ./src/db/schema/test.sql" ,
11
- "test" : " npm run test:migrate && jest --watch --runInBand"
9
+ "reset " : " psql scheduler_development < ./src/db/schema/create.sql && psql scheduler_development < ./src/db/schema/development.sql" ,
10
+ "test:reset " : " psql -o /dev/null scheduler_test < ./src/db/schema/create.sql && psql -o /dev/null scheduler_test < ./src/db/schema/test.sql" ,
11
+ "test" : " npm run test:reset && jest --watch --runInBand"
12
12
},
13
13
"author" : " " ,
14
14
"license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments