Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Fix tests by using meteortesting:mocha
Browse files Browse the repository at this point in the history
With the workaround mentioned in
Meteor-Community-Packages/meteor-mocha#48
  • Loading branch information
Michiel ter Reehorst committed Jan 31, 2018
1 parent 6586b2e commit 3561d85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
test/**
5 changes: 1 addition & 4 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ Package.onTest(function test(api) {
api.use(packages);

api.use([
'coffeescript@1.12.7_3',
'practicalmeteor:mocha@2.4.5_6',
'dispatch:phantomjs-tests@=0.0.5',
'dispatch:mocha-phantomjs',
'meteortesting:mocha'
]);

api.mainModule('specs/client.spec.js', 'client');
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
"doctoc": "doctoc ./README.md",
"eslint": "eslint ./lib ./specs",
"publish": "meteor npm install && meteor npm run eslint -s && meteor npm run doctoc -s && rm -rf ./node_modules && meteor publish",
"test": "MOCHA_RUN_ORDER=serial meteor test-packages ./ --once --driver-package dispatch:mocha-phantomjs",
"test-watch": "MOCHA_RUN_ORDER=serial meteor test-packages ./ --driver-package practicalmeteor:mocha"
"setup-test": "rm -rf ./test && meteor create --bare test && cd test && meteor npm i --save selenium-webdriver@3 chromedriver",
"test": "meteor npm run setup-test && cd test && METEOR_PACKAGE_DIRS=../ TEST_BROWSER_DRIVER=chrome meteor test-packages --once --driver-package meteortesting:mocha ../",
"test-watch": "meteor npm run setup-test && cd test && TEST_WATCH=1 METEOR_PACKAGE_DIRS=../ TEST_BROWSER_DRIVER=chrome meteor test-packages --driver-package meteortesting:mocha ../"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 3561d85

Please sign in to comment.