File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3- - " 8.2.1 "
3+ - " 8.9.4 "
44install :
55 - yarn install
6- scripts :
7- - npm test
6+ env :
7+ - DB_TYPE="sqlite" DB_DATABASE="./mydb.sql" DB_LOGGING=false
8+ script :
9+ - npm start test
10+ - npm start test.integration
11+ - npm start test.e2e
812 - npm start build
913notifications :
1014 email : false
Original file line number Diff line number Diff line change 11environment :
22 nodejs_version : " 8"
3+ DB_TYPE : " sqlite"
4+ DB_DATABASE : " ./mydb.sql"
5+ DB_LOGGING : false
36
47install :
58 - ps : Install-Product node $env:nodejs_version
@@ -9,4 +12,6 @@ build_script:
912 - npm start build
1013
1114test_script :
12- - npm test
15+ - npm start test
16+ - npm start test.integration
17+ - npm start test.e2e
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as request from 'supertest';
33
44import { User } from '../../../src/api/models/User' ;
55import { CreateBruce } from '../../../src/database/seeds/CreateBruce' ;
6- import { runSeeder } from '../../../src/lib/seed' ;
6+ import { runSeed } from '../../../src/lib/seed' ;
77import { closeDatabase } from '../../utils/database' ;
88import { fakeAuthenticationForUser } from '../utils/auth' ;
99import { BootstrapSettings } from '../utils/bootstrap' ;
@@ -20,7 +20,7 @@ describe('/api/users', () => {
2020
2121 beforeAll ( async ( ) => {
2222 settings = await prepareServer ( { migrate : true } ) ;
23- bruce = await runSeeder < User > ( CreateBruce ) ;
23+ bruce = await runSeed < User > ( CreateBruce ) ;
2424 fakeAuthenticationForUser ( bruce , true ) ;
2525 } ) ;
2626
You can’t perform that action at this time.
0 commit comments