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:
martmull
2025-10-30 12:18:25 +01:00
committed by GitHub
parent 65a329e900
commit 8edb2c5520
6 changed files with 23 additions and 50 deletions
@@ -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();
});