Skip to content

Commit

Permalink
fix(tests): more windows-specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed May 6, 2023
1 parent c796f65 commit f4dff2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ test('🧪 run() should correctly switch the working directory if given.', async
`'coverage ok'`,
`::debug::✅ Coverage run completed...`,
PLATFORM === 'win32'
? `[command]${EXE_PATH_PREFIX} "${CUSTOM_WORKDIR}\\test.${EXE_EXT} after-build --exit-code 0"`
? `[command]${EXE_PATH_PREFIX} "${CUSTOM_WORKDIR}\\test.${EXE_EXT}" after-build --exit-code 0"`
: `[command]${CUSTOM_WORKDIR}/test.${EXE_EXT} after-build --exit-code 0`,
`after-build --exit-code 0`,
`::debug::✅ CC Reporter after-build checkin completed!`,
Expand Down Expand Up @@ -858,7 +858,9 @@ test('🧪 run() should throw an error if the after-build step throws an error.'
PLATFORM === 'win32'
? `[command]${EXE_PATH_PREFIX} "${DEFAULT_WORKDIR}\\test.${EXE_EXT} after-build --exit-code 0"`
: `[command]${DEFAULT_WORKDIR}/test.${EXE_EXT} after-build --exit-code 0`,
`::error::The process '${DEFAULT_WORKDIR}/test.${EXE_EXT}' failed with exit code 69`,
PLATFORM === 'win32'
? `::error::The process '${DEFAULT_WORKDIR}\\test.${EXE_EXT}' failed with exit code 69`
: `::error::The process '${DEFAULT_WORKDIR}/test.${EXE_EXT}' failed with exit code 69`,
`::error::🚨 CC Reporter after-build checkin failed!`,
``,
].join(EOL),
Expand Down

0 comments on commit f4dff2a

Please sign in to comment.