Skip to content

Commit 3f51c9c

Browse files
committed
Fix tests for cross-platforms
1 parent 2068d4f commit 3f51c9c

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ exports[`List packages 1`] = `
3838
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
3939
│ chowdhury-dsp/chowtapemodel │ Chow Tape Model │ 2.11.4 │ - │ 2023-11-05 │ gpl-3.0 │ Effect, Filter, Tape │
4040
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
41+
│ clearly-broken-software/drops │ Drops │ 1.0.0 │ - │ 2022-01-15 │ gpl-3.0 │ Instrument, Sampler, Filter │
42+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
4143
│ clearly-broken-software/ninjas2 │ Ninjas 2 │ 0.2.0 │ - │ 2020-01-17 │ gpl-3.0 │ Instrument, Sampler, Slicer │
4244
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
4345
│ creativeintent/temper │ Temper │ 1.0.4 │ - │ 2025-07-08 │ gpl-3.0 │ Distortion, Effect │
@@ -80,6 +82,8 @@ exports[`List packages 1`] = `
8082
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
8183
│ khrykin/blackbird │ BlackBird │ 0.1.0 │ - │ 2020-11-11 │ gpl-3.0 │ Instrument, Synth, Analog │
8284
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
85+
│ lsp-plugins/lsp-plugins │ LSP Plugins │ 1.2.23 │ - │ 2025-08-26 │ lgpl-3.0 │ Delay, Chorus, Compressor, Fil... │
86+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
8387
│ magnetophon/lamb-rs │ lamb │ 2.1.0 │ - │ 2024-09-18 │ agpl-3.0 │ Compressor, Limiter │
8488
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
8589
│ martineastwood/mverb │ Mverb │ 1.0.0 │ - │ 2013-03-25 │ gpl-3.0 │ Effect, Reverb │
@@ -96,10 +100,14 @@ exports[`List packages 1`] = `
96100
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
97101
│ mtytel/helm │ Helm │ 0.9.0 │ - │ 2017-07-08 │ gpl-3.0 │ Instrument, Synth, Modulation │
98102
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
103+
│ mzuther/squeezer │ Squeezer │ 2.5.4 │ - │ 2020-04-17 │ gpl-3.0 │ Effect, Compressor │
104+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
99105
│ open-soundfonts/virtual-playing-orchestra │ Virtual Playing Orchestra │ 3.3.2 │ - │ 2020-10-17 │ gpl-3.0 │ Instrument, Orchestral, String... │
100106
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
101107
│ paynebc/tunefish │ Tunefish │ 4.2.0 │ - │ 2018-05-04 │ gpl-3.0 │ Instrument, Synth, Analog │
102108
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
109+
│ pentagrampro/owlbass │ OwlBass │ 1.0.0 │ - │ 2019-01-13 │ gpl-3.0 │ Instrument, Synth, Bass │
110+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
103111
│ reales/ob-xd │ OB-Xd │ 3.5.0 │ - │ 2021-05-30 │ gpl-3.0 │ Instrument, Synth, OB-X │
104112
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
105113
│ reales/opl │ OPL │ 2.4.0 │ - │ 2024-08-08 │ gpl-3.0 │ Instrument, Synth, FM │
@@ -144,6 +152,12 @@ exports[`List packages 1`] = `
144152
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
145153
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ ✓ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
146154
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
155+
│ tesselode/cocoa-delay │ Cocoa Delay │ 1.0.0 │ - │ 2018-09-01 │ mit │ Effect, Delay, Warm │
156+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
157+
│ tesselode/flutterbird │ Flutterbird │ 1.0.1 │ - │ 2018-09-06 │ mit │ Effect, Pitch, Modulation │
158+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
159+
│ tesselode/mika-micro │ Mika Micro │ 2.0.1 │ - │ 2018-05-17 │ mit │ Instrument, Synth, Oscillators │
160+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
147161
│ the-synister/synister │ Synister │ 1.0.3 │ - │ 2016-03-19 │ gpl-3.0 │ Instrument, Synth, Modulation │
148162
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
149163
│ thewavewarden/odin │ Odin │ 2.3.4 │ - │ 2020-11-09 │ gpl-3.0 │ Instrument, Synth, Moog │
@@ -165,6 +179,8 @@ exports[`List packages 1`] = `
165179
│ vvvar/peakeater │ PeakEater │ 0.8.2 │ - │ 2023-08-21 │ gpl-3.0 │ Modulation, Distortion, Gain │
166180
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
167181
│ wolf-plugins/wolf-shaper │ Wolf Shaper │ 1.0.2 │ - │ 2023-05-14 │ gpl-3.0 │ Effect, Distortion, Editor │
182+
├───────────────────────────────────────────┼───────────────────────────┼─────────┼───────────┼────────────┼───────────────┼───────────────────────────────────┤
183+
│ wolf-plugins/wolf-spectrum │ Wolf Spectrum │ 1.0.0 │ - │ 2019-04-14 │ gpl-3.0 │ Effect, Spectrogram, Frequency │
168184
└───────────────────────────────────────────┴───────────────────────────┴─────────┴───────────┴────────────┴───────────────┴───────────────────────────────────┘
169185
`;
170186

tests/commands/list.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { cli } from '../shared';
33
import { RegistryType } from '@open-audio-stack/core';
44

55
test('List packages', async () => {
6-
expect(cli(RegistryType.Plugins, 'list')).toMatchSnapshot();
6+
expect(cli(RegistryType.Plugins, 'list', '--incompatible')).toMatchSnapshot();
77
expect(cli(RegistryType.Plugins, 'list', '--installed')).toMatchSnapshot();
88
});

tests/commands/uninstall.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { cli } from '../shared';
33
import { RegistryType } from '@open-audio-stack/core';
44

55
test('Uninstall package', async () => {
6+
cli(RegistryType.Plugins, 'install', 'surge-synthesizer/surge');
67
expect(cli(RegistryType.Plugins, 'uninstall', 'surge-synthesizer/surge')).toMatchSnapshot();
8+
9+
cli(RegistryType.Plugins, 'install', 'surge-synthesizer/surge@1.3.1');
710
expect(cli(RegistryType.Plugins, 'uninstall', 'surge-synthesizer/surge@1.3.1')).toMatchSnapshot();
11+
812
expect(cli(RegistryType.Plugins, 'uninstall', 'surge-synthesizer/surge@0.0.0')).toMatchSnapshot();
913
});

0 commit comments

Comments
 (0)