Skip to content

Commit 60c2151

Browse files
authored
Fix Travis succeeding on test failures (#11)
* Fix Travis succeeding on test failures * Add missing field to test
1 parent 9e82dec commit 60c2151

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ node_js:
66
- "12"
77

88
script:
9-
- yarn test:ci | coveralls
9+
- yarn test:ci

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
],
1616
"main": "index.js",
1717
"scripts": {
18+
"coveralls": "coveralls < ./coverage/lcov.info",
1819
"lint": "eslint index.js test",
1920
"start": "cd demo && yarn start",
2021
"test": "yarn run lint && yarn test:coverage",
21-
"test:ci": "yarn test:coverage --verbose --coverageReporters=text-lcov",
22+
"test:ci": "yarn test:coverage --verbose && yarn coveralls",
2223
"test:coverage": "jest --coverage",
2324
"test:only": "jest"
2425
},

test/tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function defineTests(packageName) {
4545
);
4646
expect(response.harEntry).toEqual({
4747
_timestamps: expect.any(Object),
48+
_resourceType: "fetch",
4849
startedDateTime: expect.stringMatching(
4950
/^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d+Z$/
5051
),

0 commit comments

Comments
 (0)