Merged
Show file tree
Hide file tree
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
@echo off
echo you sure are someone
Original file line numberDiff line numberDiff line change
Expand Up@@ -434,5 +434,22 @@ run.methods.forEach((method) => {
expect(Number(stdout.trim())).toBe(process.pid);
});
}

if (isWin) {
const differentPathKey = pathKey.startsWith('p') ? 'PATH' : 'path';

it('should work if the path key is different in options.env', async () => {
const env = {
...process.env,
[differentPathKey]: `${__dirname}\\fixtures;${process.env[pathKey]}`,
};

delete env[pathKey];

const { stdout } = await run(method, 'whoami', { env });

expect(stdout.trim()).toBe('you sure are someone');
});
}
});
});