Skip to content

Commit 7a36543

Browse files
authored
fix: ts test && pkg scripts (eggjs#67)
1 parent 4c83927 commit 7a36543

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hackernews-async-ts/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"debug": "egg-bin debug -r egg-ts-helper/register",
1313
"test-local": "egg-bin test -r egg-ts-helper/register",
1414
"test": "npm run lint -- --fix && npm run test-local",
15-
"cov": "egg-bin cov",
15+
"cov": "egg-bin cov -r egg-ts-helper/register",
1616
"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",
1818
"autod": "autod",
1919
"lint": "tslint .",
2020
"clean": "ets clean"
@@ -36,8 +36,7 @@
3636
"egg-bin": "^4.6.2",
3737
"egg-mock": "^3.16.0",
3838
"egg-ts-helper": "^1.4.2",
39-
"rimraf": "^2.6.1",
40-
"tslib": "^1.8.1",
39+
"tslib": "^1.9.0",
4140
"tslint": "^4.0.0",
4241
"typescript": "^2.8.1"
4342
},

hackernews-async-ts/test/app/service/News.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
'use strict';
22

3+
import * as assert from 'assert';
34
import { Context } from 'egg';
4-
import { app, assert } from 'egg-mock/bootstrap';
5+
import { app } from 'egg-mock/bootstrap';
56

67
describe('test/app/service/News.test.js', () => {
78
let ctx: Context;
89

9-
before(async () => {
10+
before(() => {
1011
ctx = app.mockContext();
1112
});
1213

0 commit comments

Comments
 (0)