mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 13:40:46 +00:00
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
ec1fa954d1
commit
2998f27f70
75 changed files with 495 additions and 483 deletions
|
|
@ -93,10 +93,10 @@ describe('gemini.tsx main function', () => {
|
|||
loadSettingsMock = vi.mocked(loadSettings);
|
||||
|
||||
// Store and clear sandbox-related env variables to ensure a consistent test environment
|
||||
originalEnvGeminiSandbox = process.env.GEMINI_SANDBOX;
|
||||
originalEnvSandbox = process.env.SANDBOX;
|
||||
delete process.env.GEMINI_SANDBOX;
|
||||
delete process.env.SANDBOX;
|
||||
originalEnvGeminiSandbox = process.env['GEMINI_SANDBOX'];
|
||||
originalEnvSandbox = process.env['SANDBOX'];
|
||||
delete process.env['GEMINI_SANDBOX'];
|
||||
delete process.env['SANDBOX'];
|
||||
|
||||
consoleErrorSpy = vi.spyOn(console, 'error').mockImplementation(() => {});
|
||||
initialUnhandledRejectionListeners =
|
||||
|
|
@ -106,14 +106,14 @@ describe('gemini.tsx main function', () => {
|
|||
afterEach(() => {
|
||||
// Restore original env variables
|
||||
if (originalEnvGeminiSandbox !== undefined) {
|
||||
process.env.GEMINI_SANDBOX = originalEnvGeminiSandbox;
|
||||
process.env['GEMINI_SANDBOX'] = originalEnvGeminiSandbox;
|
||||
} else {
|
||||
delete process.env.GEMINI_SANDBOX;
|
||||
delete process.env['GEMINI_SANDBOX'];
|
||||
}
|
||||
if (originalEnvSandbox !== undefined) {
|
||||
process.env.SANDBOX = originalEnvSandbox;
|
||||
process.env['SANDBOX'] = originalEnvSandbox;
|
||||
} else {
|
||||
delete process.env.SANDBOX;
|
||||
delete process.env['SANDBOX'];
|
||||
}
|
||||
|
||||
const currentListeners = process.listeners('unhandledRejection');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue