Skip to content

Commit

Permalink
Enable tests, ignore compiled files
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Mar 2, 2018
1 parent 78ded81 commit d93838e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ install:
- npm install -g typescript
- npm install -g tslint
script:
- ./scripts/test.sh
- ./scripts/test.sh
1 change: 1 addition & 0 deletions es2017-transpile/functions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.js
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"username-password-auth/functions"
],
"version": "1.0.0"
}
}
2 changes: 1 addition & 1 deletion paypal/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
firebase-debug.log
functions/eslintrc.js
functions/eslintrc.js
1 change: 0 additions & 1 deletion quickstarts/uppercase-firestore/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"sinon": "^1.17.7"
},
"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec",
"lint": "./node_modules/.bin/eslint --max-warnings=0 .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
Expand Down
3 changes: 2 additions & 1 deletion quickstarts/uppercase/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"sinon": "^4.1.3"
},
"scripts": {
"test": "./node_modules/.bin/mocha --reporter spec",
"build": "npm install",
"test": "npm run build && ./node_modules/.bin/mocha --reporter spec",
"lint": "./node_modules/.bin/eslint --max-warnings=0 .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
Expand Down
5 changes: 3 additions & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
echo "Linting..."
lerna run lint

# TODO: run tests
# 'lerna bootstrap' takes too long on travis so not sure how to do this
# Run tests
echo "Testing..."
lerna run test

0 comments on commit d93838e

Please sign in to comment.