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

Commit f4dff2a

Browse files
committed
fix(tests): more windows-specific tests
1 parent c796f65 commit f4dff2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/main.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ test('🧪 run() should correctly switch the working directory if given.', async
544544
`'coverage ok'`,
545545
`::debug::✅ Coverage run completed...`,
546546
PLATFORM === 'win32'
547-
? `[command]${EXE_PATH_PREFIX} "${CUSTOM_WORKDIR}\\test.${EXE_EXT} after-build --exit-code 0"`
547+
? `[command]${EXE_PATH_PREFIX} "${CUSTOM_WORKDIR}\\test.${EXE_EXT}" after-build --exit-code 0"`
548548
: `[command]${CUSTOM_WORKDIR}/test.${EXE_EXT} after-build --exit-code 0`,
549549
`after-build --exit-code 0`,
550550
`::debug::✅ CC Reporter after-build checkin completed!`,
@@ -858,7 +858,9 @@ test('🧪 run() should throw an error if the after-build step throws an error.'
858858
PLATFORM === 'win32'
859859
? `[command]${EXE_PATH_PREFIX} "${DEFAULT_WORKDIR}\\test.${EXE_EXT} after-build --exit-code 0"`
860860
: `[command]${DEFAULT_WORKDIR}/test.${EXE_EXT} after-build --exit-code 0`,
861-
`::error::The process '${DEFAULT_WORKDIR}/test.${EXE_EXT}' failed with exit code 69`,
861+
PLATFORM === 'win32'
862+
? `::error::The process '${DEFAULT_WORKDIR}\\test.${EXE_EXT}' failed with exit code 69`
863+
: `::error::The process '${DEFAULT_WORKDIR}/test.${EXE_EXT}' failed with exit code 69`,
862864
`::error::🚨 CC Reporter after-build checkin failed!`,
863865
``,
864866
].join(EOL),

0 commit comments

Comments
 (0)