Last active
January 23, 2019 04:10
-
-
Save hexsprite/227085f76c0a079bebda0e7230177034 to your computer and use it in GitHub Desktop.
Using Istanbul wth Meteor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"meteor:coverage": { | |
"plugins": ["istanbul"] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"babel-plugin-istanbul": "^4.1.4", | |
"nyc": "^11.2.1", | |
.... | |
you'll need these if not others |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export TZ=UTC | |
export BABEL_ENV=meteor:coverage | |
NODE=`meteor node -e "process.stdout.write(process.execPath)"` | |
METEORJS=`meteor node -e "process.stdout.write(require('path').resolve(process.execPath, '../../../tools/index.js'))"` | |
node_modules/.bin/nyc $NODE $METEORJS $* test --full-app --settings test.json \ | |
--raw-logs --once --driver-package meteortesting:mocha --port 9500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment