Skip to content

Commit 24111b9

Browse files
committed
fix: windows tests
1 parent 8462471 commit 24111b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app-config-cli/src/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const runCLI = (argv: string[], { env }: { env?: Record<string, string> } = {})
1717
return true;
1818
});
1919

20+
process.chdir(__dirname);
2021
process.stdout.write = stdoutWrite;
2122

2223
jest.spyOn(console, 'log').mockImplementation((line: string) => stdoutWrite(`${line}\n`));
@@ -281,8 +282,6 @@ describe('create', () => {
281282

282283
expect(stdout).toMatchSnapshot();
283284

284-
delete process.env.APP_CONFIG;
285-
286285
await expect(
287286
runCLI(['create', '-q', '--environmentVariableName=MY_CONF'], {
288287
env: { APP_CONFIG: MY_CONF },

0 commit comments

Comments
 (0)