mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-26 23:35:17 -07:00
test(launcher): gate Linux AppImage env test with early return
Bun's node:test shim ignores the skip option, so the Linux-only test ran and failed on macOS.
This commit is contained in:
1 file changed
+2
-1
@@ -174,8 +174,9 @@ test('runAppCommandCaptureOutput strips ELECTRON_RUN_AS_NODE from app child env'
|
|||||||
|
|
||||||
test(
|
test(
|
||||||
'runAppCommandCaptureOutput transports Linux AppImage args through environment',
|
'runAppCommandCaptureOutput transports Linux AppImage args through environment',
|
||||||
{ skip: process.platform !== 'linux' },
|
|
||||||
async () => {
|
async () => {
|
||||||
|
// Bun's node:test shim ignores the `skip` option, so gate the platform here.
|
||||||
|
if (process.platform !== 'linux') return;
|
||||||
await withTempCase(({ dir }) => {
|
await withTempCase(({ dir }) => {
|
||||||
const appPath = writeFakeApp(
|
const appPath = writeFakeApp(
|
||||||
dir,
|
dir,
|
||||||
|
|||||||
Reference in new issue
Block a user