Attempt to test Builder, using Firebase mock

This commit is contained in:
gianantoniopini
2020-12-10 17:03:56 +01:00
parent e3d1f0305a
commit b992bc4b73
6 changed files with 79 additions and 24 deletions

View File

@ -0,0 +1,14 @@
import demoResume from '../src/data/demoState.json';
module.exports = {
database: jest.fn().mockReturnValue({
ref: jest.fn().mockReturnValue({
once: jest.fn().mockResolvedValue({
val: jest.fn().mockReturnValue(demoResume),
}),
}),
}),
auth: jest.fn().mockReturnValue({
onAuthStateChanged: jest.fn(),
}),
};