From 0e69162aea3ea0785c45a13eee5eb46961b33d5f Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 8 Mar 2026 19:01:06 -0700 Subject: [PATCH] fix: gate windows plugin test paths on host platform --- .../runtime/first-run-setup-plugin.test.ts | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/runtime/first-run-setup-plugin.test.ts b/src/main/runtime/first-run-setup-plugin.test.ts index 9109a380..08c6c89b 100644 --- a/src/main/runtime/first-run-setup-plugin.test.ts +++ b/src/main/runtime/first-run-setup-plugin.test.ts @@ -96,10 +96,10 @@ test('installFirstRunPluginToDefaultLocation installs plugin and backs up existi }); }); -test( - 'installFirstRunPluginToDefaultLocation installs plugin to Windows mpv defaults', - { skip: process.platform !== 'win32' }, - () => { +test('installFirstRunPluginToDefaultLocation installs plugin to Windows mpv defaults', () => { + if (process.platform !== 'win32') { + return; + } withTempDir((root) => { const resourcesPath = path.join(root, 'resources'); const pluginRoot = path.join(resourcesPath, 'plugin'); @@ -130,13 +130,12 @@ test( 'configured=true\n', ); }); -}, -); +}); -test( - 'installFirstRunPluginToDefaultLocation rewrites Windows plugin socket_path', - { skip: process.platform !== 'win32' }, - () => { +test('installFirstRunPluginToDefaultLocation rewrites Windows plugin socket_path', () => { + if (process.platform !== 'win32') { + return; + } withTempDir((root) => { const resourcesPath = path.join(root, 'resources'); const pluginRoot = path.join(resourcesPath, 'plugin'); @@ -164,5 +163,4 @@ test( 'binary_path=\nsocket_path=\\\\.\\pipe\\subminer-socket\n', ); }); -}, -); +});