Skip to content

Commit

Permalink
fix(tests): fix the Windows path
Browse files Browse the repository at this point in the history
See tape-testing/tape#593 (comment)

Looks like inside Windows (NTFS), all paths are case insensitive. The Windows laptop I used reported the default path as 'C:\WINDOWS', while the CI machine reports it as 'C:\Windows'
  • Loading branch information
paambaati committed May 7, 2023
1 parent 75b8572 commit 6e02942
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const EXE_EXT = PLATFORM === 'win32' ? 'bat' : ('sh' as const);
const DEFAULT_WORKDIR = process.cwd();
const EXE_PATH_PREFIX =
PLATFORM === 'win32'
? 'C:\\WINDOWS\\system32\\cmd.exe /D /S /C'
? 'C:\\Windows\\system32\\cmd.exe /D /S /C'
: ('' as const);
let ECHO_CMD = PLATFORM === 'win32' ? `${EXE_PATH_PREFIX} echo` : '/bin/echo';

Expand Down Expand Up @@ -145,10 +145,6 @@ test('🧪 run() should run the CC reporter (happy path).', async (t) => {
`::debug::✅ CC Reporter after-build checkin completed!`,
``,
].join(EOL);
console.debug('->> capturedOutput length = ', capturedOutput.length);
console.debug('->> expected length = ', expected.length);
console.debug('->>>> capturedOutput = ', JSON.stringify(capturedOutput));
console.debug('->>>> expected = ', JSON.stringify(expected));
t.equal(
JSON.stringify(capturedOutput),
JSON.stringify(expected),
Expand Down

0 comments on commit 6e02942

Please sign in to comment.