Skip to content
This repository was archived by the owner on Feb 22, 2021. It is now read-only.

Commit a95c9ca

Browse files
committed
test(cover): ignore dom file
1 parent 9fa7f3d commit a95c9ca

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ script:
1919
- npm run ex:build && npm run release
2020

2121
after_success:
22-
- npm run cover
22+
- npm run cover:hook

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "commitlint.config.js",
66
"scripts": {
77
"test": "./node_modules/.bin/mocha",
8-
"cover": "./node_modules/.bin/nyc mocha && cat ./coverage/lcov.info | coveralls",
8+
"cover:local": "./node_modules/.bin/nyc mocha",
9+
"cover:hook": "./node_modules/.bin/nyc mocha && cat ./coverage/lcov.info | coveralls",
910
"ex": "tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run tsc:clean",
1011
"ex:build": "tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run tsc:clean",
1112
"release": "tsc ./build/main/webpack.prod.ts && rm -rf release && webpack --config build/main/webpack.prod.js && npm run tsc:clean",
@@ -62,7 +63,8 @@
6263
"test/**/*.ts"
6364
],
6465
"exclude": [
65-
"typings"
66+
"typings",
67+
"**/*.nyc.ts"
6668
],
6769
"extension": [
6870
".ts",

test/core/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EventHub } from '../../src/core/event'
22
import { expect } from 'chai'
3-
import { install } from '../dom'
3+
import { install } from '../dom.nyc'
44

55
describe('Core function test', () => {
66

File renamed without changes.

0 commit comments

Comments
 (0)