diff options
| author | Richie Foreman <[email protected]> | 2025-08-17 12:43:21 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-17 16:43:21 +0000 |
| commit | 2998f27f703282359f6389d1c2d8758fc6a14955 (patch) | |
| tree | a7e3ff7f969c44e61ab27240cdd615e291b6deae /integration-tests | |
| parent | ec1fa954d18ec9abab3ce669536dd24559a499f1 (diff) | |
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'integration-tests')
| -rw-r--r-- | integration-tests/file-system.test.ts | 2 | ||||
| -rw-r--r-- | integration-tests/mcp_server_cyclic_schema.test.ts | 2 | ||||
| -rw-r--r-- | integration-tests/replace.test.ts | 3 | ||||
| -rw-r--r-- | integration-tests/simple-mcp-server.test.ts | 2 | ||||
| -rw-r--r-- | integration-tests/write_file.test.ts | 3 |
5 files changed, 7 insertions, 5 deletions
diff --git a/integration-tests/file-system.test.ts b/integration-tests/file-system.test.ts index 5a7028e0..6b150be5 100644 --- a/integration-tests/file-system.test.ts +++ b/integration-tests/file-system.test.ts @@ -86,7 +86,7 @@ describe('file-system', () => { ).toBeTruthy(); // Log success info if verbose - if (process.env.VERBOSE === 'true') { + if (process.env['VERBOSE'] === 'true') { console.log('File written successfully with hello message.'); } }); diff --git a/integration-tests/mcp_server_cyclic_schema.test.ts b/integration-tests/mcp_server_cyclic_schema.test.ts index 18c1bcde..7136287c 100644 --- a/integration-tests/mcp_server_cyclic_schema.test.ts +++ b/integration-tests/mcp_server_cyclic_schema.test.ts @@ -27,7 +27,7 @@ const readline = require('readline'); const fs = require('fs'); // Debug logging to stderr (only when MCP_DEBUG or VERBOSE is set) -const debugEnabled = process.env.MCP_DEBUG === 'true' || process.env.VERBOSE === 'true'; +const debugEnabled = process.env['MCP_DEBUG'] === 'true' || process.env['VERBOSE'] === 'true'; function debug(msg) { if (debugEnabled) { fs.writeSync(2, \`[MCP-DEBUG] \${msg}\\n\`); diff --git a/integration-tests/replace.test.ts b/integration-tests/replace.test.ts index 3a2d979b..a04025e7 100644 --- a/integration-tests/replace.test.ts +++ b/integration-tests/replace.test.ts @@ -56,7 +56,8 @@ describe('replace', () => { expect(newFileContent).toBe(expectedContent); // Log success info if verbose - if (process.env.VERBOSE === 'true') { + vi.stubEnv('VERBOSE', 'true'); + if (process.env['VERBOSE'] === 'true') { console.log('File replaced successfully. New content:', newFileContent); } }); diff --git a/integration-tests/simple-mcp-server.test.ts b/integration-tests/simple-mcp-server.test.ts index 98c81f16..b57502cf 100644 --- a/integration-tests/simple-mcp-server.test.ts +++ b/integration-tests/simple-mcp-server.test.ts @@ -28,7 +28,7 @@ const readline = require('readline'); const fs = require('fs'); // Debug logging to stderr (only when MCP_DEBUG or VERBOSE is set) -const debugEnabled = process.env.MCP_DEBUG === 'true' || process.env.VERBOSE === 'true'; +const debugEnabled = process.env['MCP_DEBUG'] === 'true' || process.env['VERBOSE'] === 'true'; function debug(msg) { if (debugEnabled) { fs.writeSync(2, \`[MCP-DEBUG] \${msg}\\n\`); diff --git a/integration-tests/write_file.test.ts b/integration-tests/write_file.test.ts index 3fe26af6..49cdda38 100644 --- a/integration-tests/write_file.test.ts +++ b/integration-tests/write_file.test.ts @@ -58,7 +58,8 @@ describe('write_file', () => { expect(newFileContent).not.toBe(''); // Log success info if verbose - if (process.env.VERBOSE === 'true') { + vi.stubEnv('VERBOSE', 'true'); + if (process.env['VERBOSE'] === 'true') { console.log( 'File created successfully with content:', newFileContent.substring(0, 100) + '...', |
