Skip to content

Commit

Permalink
Merge pull request #1164 from ONEARMY/fix/functions
Browse files Browse the repository at this point in the history
build fixes - functions linting
  • Loading branch information
chrismclarke authored Jun 1, 2021
2 parents db0a0f9 + a65eb8e commit a935a1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion cypress/support/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ beforeEach(() => {
*/
after(() => {
cy.clearServiceWorkers()
cy.wrap('Clear DB').then({ timeout: 30000 }, () => {
cy.wrap('Clear DB').then({ timeout: 120000 }, () => {
return new Cypress.Promise((resolve, reject) => {
// force resolve in case of server issues (sometimes a bit flaky)
setTimeout(() => {
resolve()
}, 10000)
// clear the database
TestDB.clearDB().then(
() => resolve(),
err => reject(err),
Expand Down
3 changes: 1 addition & 2 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
},
"functions": {
"predeploy": [
"yarn workspace functions install",
"yarn workspace functions lint",
"yarn install",
"yarn workspace functions exec npm run build"
],
"source": "functions"
Expand Down

0 comments on commit a935a1f

Please sign in to comment.