disallow --only-changed in UI mode
This commit is contained in:
parent
6c19e0e38f
commit
5bdeb38a80
|
|
@ -158,6 +158,9 @@ async function runTests(args: string[], opts: { [key: string]: any }) {
|
|||
const cliOverrides = overridesFromOptions(opts);
|
||||
|
||||
if (opts.ui || opts.uiHost || opts.uiPort) {
|
||||
if (opts.onlyChanged)
|
||||
throw new Error('--only-changed is not supported in UI mode');
|
||||
|
||||
const status = await testServer.runUIMode(opts.config, {
|
||||
host: opts.uiHost,
|
||||
port: opts.uiPort ? +opts.uiPort : undefined,
|
||||
|
|
|
|||
|
|
@ -243,4 +243,8 @@ test.describe('should work the same if being called in subdirectory', () => {
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
test('UI mode is not supported', async ({ runInlineTest }) => {
|
||||
const result = await runInlineTest({}, { 'only-changed': true, 'ui': true });
|
||||
expect(result.exitCode).toBe(1);
|
||||
expect(result.output).toContain('--only-changed is not supported in UI mode');
|
||||
});
|
||||
Loading…
Reference in a new issue