Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 6e02942

Browse files
committed
fix(tests): fix the Windows path
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'
1 parent 75b8572 commit 6e02942

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/main.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const EXE_EXT = PLATFORM === 'win32' ? 'bat' : ('sh' as const);
3636
const DEFAULT_WORKDIR = process.cwd();
3737
const EXE_PATH_PREFIX =
3838
PLATFORM === 'win32'
39-
? 'C:\\WINDOWS\\system32\\cmd.exe /D /S /C'
39+
? 'C:\\Windows\\system32\\cmd.exe /D /S /C'
4040
: ('' as const);
4141
let ECHO_CMD = PLATFORM === 'win32' ? `${EXE_PATH_PREFIX} echo` : '/bin/echo';
4242

@@ -145,10 +145,6 @@ test('🧪 run() should run the CC reporter (happy path).', async (t) => {
145145
`::debug::✅ CC Reporter after-build checkin completed!`,
146146
``,
147147
].join(EOL);
148-
console.debug('->> capturedOutput length = ', capturedOutput.length);
149-
console.debug('->> expected length = ', expected.length);
150-
console.debug('->>>> capturedOutput = ', JSON.stringify(capturedOutput));
151-
console.debug('->>>> expected = ', JSON.stringify(expected));
152148
t.equal(
153149
JSON.stringify(capturedOutput),
154150
JSON.stringify(expected),

0 commit comments

Comments
 (0)