Skip to content

Commit d6ec661

Browse files
committed
fix (test): mock env for auth0
1 parent c617fd6 commit d6ec661

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jest/setupTests.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import '@testing-library/jest-native/extend-expect';
22

3-
jest.mock('@env', () => ({
4-
AUTH0_DOMAIN: 'test-auth0-domain.auth0.com',
5-
AUTH0_CLIENT_ID: 'test-auth0-client-id',
3+
jest.mock('config/auth0', () => ({
4+
AUTH0_CONFIG: {
5+
domain: 'test-auth0-domain.auth0.com',
6+
clientId: 'test-auth0-client-id',
7+
},
68
}));
79

810
jest.mock('react-native-mmkv-storage', () => {

0 commit comments

Comments
 (0)