-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to firebase-admin module imports (#564)
- Loading branch information
1 parent
b859acf
commit 2dce7ff
Showing
28 changed files
with
7,968 additions
and
7,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
const { defineConfig } = require('cypress') | ||
const tasks = require('cypress-firebase/lib/tasks') | ||
const cypressFirebasePlugin = require('cypress-firebase').plugin | ||
const admin = require('firebase-admin') | ||
const { initializeApp } = require('firebase-admin/app'); | ||
|
||
// Initialize firebase-admin default app | ||
initializeApp() | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
baseUrl: 'http://localhost:3000', | ||
// supportFile: false, | ||
supportFile: 'cypress/support/e2e/index.js', | ||
setupNodeEvents(on, config) { | ||
cypressFirebasePlugin(on, config, admin) | ||
// e2e testing node events setup code | ||
return cypressFirebasePlugin(on, config) | ||
}, | ||
}, | ||
// Uncomment to enable for component testing | ||
// component: { | ||
// setupNodeEvents(on, config) { | ||
// // component testing node events setup code | ||
// return cypressFirebasePlugin(on, config) | ||
// }, | ||
// }, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { plugin as cypressFirebasePlugin } from 'cypress-firebase'; | ||
import { initializeApp } from 'firebase-admin/app'; | ||
import { defineConfig } from 'cypress'; | ||
|
||
initializeApp() | ||
|
||
const cypressConfig = defineConfig({ | ||
e2e: { | ||
setupNodeEvents(on, config): Cypress.PluginConfigOptions { | ||
return cypressFirebasePlugin(on, config); | ||
}, | ||
}, | ||
}); | ||
|
||
export default cypressConfig; |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,5 @@ describe('Projects View', () => { | |
expect(result).to.exist; | ||
expect(result).to.be.an('object'); | ||
}); | ||
; | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.