#AngularFire Mocking
9 messages · Page 1 of 1 (latest)
thank you i will try it
Can you help me. I'm trying to make Emulator Firestore work and I've tried a lot of things already, but I just cannot make it work. just hit me up when you have the time to help me. I would highly appreciate it.
Not sure I can do more than what the documentation is saying.
What are you doing, precisely? What do you expect to happen? What happens instead?
Well I have it working, but right now I have two different jest.config files otherwise it just wont work. Could you share your jest.config file or some good documentation I cant find?
I really want to only have 1 jest config file ;o
I currently am using this jest config file to run all spec files that arent using the firebase emulator
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/src/setup.jest.ts'],
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
},
testPathIgnorePatterns: [
'/node_modules/',
'/.*\\.firestore\\.spec\\.ts$', // Ignore all firestore.spec.ts files
],
};
and I'm using this jest config file to run all the files that are using the firebase emulator
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/*.firestore.spec.ts'],
};
I don't use Jest.
Ah