Skip to content

Commit d93838e

Browse files
committed
Enable tests, ignore compiled files
1 parent 78ded81 commit d93838e

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ install:
88
- npm install -g typescript
99
- npm install -g tslint
1010
script:
11-
- ./scripts/test.sh
11+
- ./scripts/test.sh

es2017-transpile/functions/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
index.js

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@
5858
"username-password-auth/functions"
5959
],
6060
"version": "1.0.0"
61-
}
61+
}

paypal/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
firebase-debug.log
2-
functions/eslintrc.js
2+
functions/eslintrc.js

quickstarts/uppercase-firestore/functions/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"sinon": "^1.17.7"
1515
},
1616
"scripts": {
17-
"test": "./node_modules/.bin/mocha --reporter spec",
1817
"lint": "./node_modules/.bin/eslint --max-warnings=0 .",
1918
"serve": "firebase serve --only functions",
2019
"shell": "firebase experimental:functions:shell",

quickstarts/uppercase/functions/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"sinon": "^4.1.3"
1313
},
1414
"scripts": {
15-
"test": "./node_modules/.bin/mocha --reporter spec",
15+
"build": "npm install",
16+
"test": "npm run build && ./node_modules/.bin/mocha --reporter spec",
1617
"lint": "./node_modules/.bin/eslint --max-warnings=0 .",
1718
"serve": "firebase serve --only functions",
1819
"shell": "firebase experimental:functions:shell",

scripts/test.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
echo "Linting..."
33
lerna run lint
44

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

0 commit comments

Comments
 (0)