Skip to content

Commit 3f157c2

Browse files
committed
env variables
1 parent e18b91c commit 3f157c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/aws-cdk/test/commands/init.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ describe('constructs version', () => {
697697
await fs.mkdirp(projectDir1);
698698
await fs.mkdirp(projectDir2);
699699

700-
const commonEnv = { ...process.env, CDK_DISABLE_VERSION_CHECK: '1' };
700+
const commonEnv = { ...process.env, CDK_DISABLE_VERSION_CHECK: '1', CI: 'true', TERM: 'dumb', NO_COLOR: '1' };
701701
const execOptions = { timeout: 30_000, killSignal: 9 }; // fail fast if it hangs
702702

703703
// Test that template-path fails WITHOUT --unstable=init flag
@@ -712,7 +712,7 @@ describe('constructs version', () => {
712712
try {
713713
successfulResult = await execAsync(`node ${cdkBin} init --from-path ${repoDir} --template-path unstable-test --language typescript --unstable init --generate-only`, {
714714
cwd: projectDir2,
715-
env: { ...process.env, CDK_DISABLE_VERSION_CHECK: '1' },
715+
env: commonEnv,
716716
...execOptions,
717717
});
718718
} catch (err: any) {
@@ -725,7 +725,7 @@ describe('constructs version', () => {
725725

726726
expect(successfulResult.stderr).not.toContain('error');
727727
expect(await fs.pathExists(path.join(projectDir2, 'app.ts'))).toBeTruthy();
728-
});
728+
}, 100_000);
729729

730730
cliTest('conflict between lib-version and from-path is enforced', async (workDir) => {
731731
const { exec } = await import('child_process');

0 commit comments

Comments
 (0)