Skip to content

Commit 4f53f74

Browse files
committed
🐛 fix(smoke-tests): add explicit env type to satisfy strict typecheck
The spread of process.env narrows the type so VITEST and NODE_ENV are not known properties. Use Record<string, string | undefined> to allow delete on arbitrary keys.
1 parent 8600c24 commit 4f53f74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/smoke-tests/__tests__/cli-surface.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { resolve } from 'path';
44

55
const CLI = resolve(__dirname, '../../../build/cli.js');
66
const cliEnv = (() => {
7-
const env = { ...process.env, NO_COLOR: '1' };
7+
const env: Record<string, string | undefined> = { ...process.env, NO_COLOR: '1' };
88
// Remove test environment markers so the CLI binary runs in production mode
99
delete env.VITEST;
1010
delete env.NODE_ENV;

0 commit comments

Comments
 (0)