Skip to content

Commit cde829b

Browse files
committed
feat: allow 1 for local test value
1 parent ce9aae2 commit cde829b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ function getConfig(userConfig?: Partial<Config>): Config {
369369

370370
if (userConfig === undefined || userConfig.localTesting === undefined) {
371371
const result = getEnvValue(localTestingEnvVar, "false").toLowerCase();
372-
config.localTesting = result === "true";
372+
// TODO deprecate 1 for truthy, this shouldn't have been allowed
373+
// but the extension allows it, so we must as well
374+
// @ts-ignore-next-line
375+
config.localTesting = result === "true" || result === "1";
373376
}
374377

375378
return config;

0 commit comments

Comments
 (0)