fix(cli): tolerate legacy daemon flag (#1097)
This commit is contained in:
@@ -3,6 +3,14 @@ import path from 'path';
|
||||
import { pathToFileURL } from 'url';
|
||||
|
||||
import { isModuleCliExecution, normalizeCliEntryPath } from './cli-entry.js';
|
||||
import { parseArgs } from './cli.js';
|
||||
|
||||
describe('cli args', () => {
|
||||
it('accepts legacy daemon flags as no-ops', () => {
|
||||
expect(parseArgs(['serve', '--daemon']).removedFlagErrors).toEqual([]);
|
||||
expect(parseArgs(['serve', '-d']).removedFlagErrors).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('cli entry detection', () => {
|
||||
const modulePath = '/tmp/openchamber/bin/cli.js';
|
||||
|
||||
Reference in New Issue
Block a user