Stop using .env variables to authenticate with cli (#15461)
- as title, solves our user facing authentication issues using the twenty-cli - update twenty-cli version (breaking change from previous PR)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { ConfigService } from '../../services/config.service';
|
||||
import { testConfig } from './constants/testConfig';
|
||||
|
||||
beforeAll(() => {
|
||||
jest
|
||||
.spyOn(ConfigService.prototype, 'getConfig')
|
||||
.mockResolvedValue(testConfig);
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
Reference in New Issue
Block a user