Skip to content

Commit

Permalink
Fix tests and move configuration into package.json (#45)
Browse files Browse the repository at this point in the history
* add drm detector and update types

* fix declaration file

* fix declaration again

* fix tests
  • Loading branch information
xavdid authored and julien-c committed Nov 5, 2019
1 parent 9571357 commit 8a6e745
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 33 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
language: node_js
node_js:
- node # = latest
before_install:
- npm i -g typescript
- tsc --version
- node # = latest
install:
- npm ci
- tsc
- npm ci
script:
- npm test
92 changes: 68 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^10.11.2",
"mocha": "^5.2.0"
"@types/node": "^10.11.7",
"mocha": "^5.2.0",
"typescript": "3.6.4"
},
"scripts": {
"test": "node_modules/.bin/mocha dist/test/ --exit"
"pretest": "tsc",
"test": "mocha dist/test/ --exit"
}
}

0 comments on commit 8a6e745

Please sign in to comment.