Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 4b79228

Browse files
committed
chore(test): fix npm test to install missing prerequisites
1 parent aa5ceb5 commit 4b79228

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"main": "lib/protractor.js",
4545
"scripts": {
46-
"pretest": "node_modules/.bin/jshint lib spec scripts",
46+
"pretest": "./scripts/pretest.sh",
4747
"test": "node scripts/test.js",
4848
"start": "node testapp/scripts/web-server.js"
4949
},

scripts/pretest.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# When running `npm test`, this script is intended to run during pretest step.
3+
4+
WS=$(pwd) # the protractor directory
5+
$WS/bin/webdriver-manager update # updates the local webdriver manager
6+
$WS/node_modules/.bin/jshint lib spec scripts
7+
cd $WS/website && npm install # installs dependencies for the website

0 commit comments

Comments
 (0)