File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
"debug" : " egg-bin debug -r egg-ts-helper/register" ,
13
13
"test-local" : " egg-bin test -r egg-ts-helper/register" ,
14
14
"test" : " npm run lint -- --fix && npm run test-local" ,
15
- "cov" : " egg-bin cov" ,
15
+ "cov" : " egg-bin cov -r egg-ts-helper/register " ,
16
16
"tsc" : " ets && tsc -p tsconfig.json" ,
17
- "ci" : " npm run lint && npm run tsc && egg-bin cov --no-ts " ,
17
+ "ci" : " npm run lint && npm run cov && npm run tsc " ,
18
18
"autod" : " autod" ,
19
19
"lint" : " tslint ." ,
20
20
"clean" : " ets clean"
36
36
"egg-bin" : " ^4.6.2" ,
37
37
"egg-mock" : " ^3.16.0" ,
38
38
"egg-ts-helper" : " ^1.4.2" ,
39
- "rimraf" : " ^2.6.1" ,
40
- "tslib" : " ^1.8.1" ,
39
+ "tslib" : " ^1.9.0" ,
41
40
"tslint" : " ^4.0.0" ,
42
41
"typescript" : " ^2.8.1"
43
42
},
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ import * as assert from 'assert' ;
3
4
import { Context } from 'egg' ;
4
- import { app , assert } from 'egg-mock/bootstrap' ;
5
+ import { app } from 'egg-mock/bootstrap' ;
5
6
6
7
describe ( 'test/app/service/News.test.js' , ( ) => {
7
8
let ctx : Context ;
8
9
9
- before ( async ( ) => {
10
+ before ( ( ) => {
10
11
ctx = app . mockContext ( ) ;
11
12
} ) ;
12
13
You can’t perform that action at this time.
0 commit comments