Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/app/store/Run.pins.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Command pins on the host the test setup installs: not Windows, paths like /out.
import { pinBridge, pinCommands } from '../../test/commandPins';
import { installBridge } from '../../test/setup';

installBridge( pinBridge );

await pinCommands( { windows: false } );
14 changes: 14 additions & 0 deletions src/app/store/Run.pins.windows.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Command pins on a Windows host with paths like C:\out.
import { vi } from 'vitest';

import { pinBridge, pinCommands } from '../../test/commandPins';
import { installBridge } from '../../test/setup';

installBridge( {
...pinBridge,
host: { windows: true, release: '10.0.19045', arch: 'x64', cpuModel: 'Intel' },
} );
// Run.ts and RunOptions.ts read the host once at import, so the store loads again after the host is set.
vi.resetModules();

await pinCommands( { windows: true } );
Loading
Loading