Skip to content

Commit 39b61a0

Browse files
committed
Update open tests
1 parent 3f51c9c commit 39b61a0

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

tests/commands/__snapshots__/open.test.ts.snap

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ Options:
1010
-h, --help display help for command
1111
`;
1212
13+
exports[`Open command install and run steinberg/validator > Open command install and run steinberg/validator mac 1`] = `
14+
15+
VST 3.6.14 Plug-in Validator:
16+
-help | Print help
17+
-version | Print version
18+
-l | Use local instance per test
19+
-suite | [name] Only run a special test suite
20+
-e | Run extensive tests [may take a long time]
21+
-q | Only print errors
22+
-test-component | [path] Path to an additional component which includes custom tests
23+
-list | Show all installed Plug-Ins
24+
-snapshots | List snapshots from all installed Plug-Ins
25+
26+
Usage: vstvalidator [options] vst3module
27+
28+
`;
29+
1330
exports[`Open command install and run steinberg/validator 1`] = `
1431
1532
VST 3.6.14 Plug-in Validator:

tests/commands/open.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { expect, test } from 'vitest';
22
import { cli, cliCatch, cleanOutput } from '../shared';
3+
import { getSystem } from '@open-audio-stack/core';
34

45
test('Open command help', () => {
56
const result = cli('apps', 'open', '--help');
@@ -14,11 +15,13 @@ test('Open command install and run steinberg/validator', () => {
1415
// Then try to open it with --help flag
1516
try {
1617
const openResult = cli('apps', 'open', 'steinberg/validator', '--', '--help');
17-
expect(cleanOutput(openResult)).toMatchSnapshot();
18+
expect(cleanOutput(openResult)).toMatchSnapshot(`Open command install and run steinberg/validator ${getSystem()}`);
1819
} catch (error: any) {
1920
// Capture the error output for snapshot testing
2021
// This handles cases where the app might not run properly in CI
21-
expect(cleanOutput(error.stderr || error.stdout || error.message)).toMatchSnapshot();
22+
expect(cleanOutput(error.stderr || error.stdout || error.message)).toMatchSnapshot(
23+
`Open command install and run steinberg/validator error ${getSystem()}`,
24+
);
2225
}
2326
});
2427

0 commit comments

Comments
 (0)