cli: lint fix

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-02-26 23:43:46 +01:00
parent d5779e525c
commit fab449cf9e
@@ -59,14 +59,14 @@ export default async ({ args, info }: CommandContext) => {
// For test scripts we keep all existing flags except for --passWithNoTests, since that's now default
const testCmd = ['test'];
if (scripts.test?.startsWith('backstage-cli test')) {
const args = scripts.test
const testArgs = scripts.test
.slice('backstage-cli test'.length)
.split(' ')
.filter(Boolean);
if (args.includes('--passWithNoTests')) {
args.splice(args.indexOf('--passWithNoTests'), 1);
if (testArgs.includes('--passWithNoTests')) {
testArgs.splice(testArgs.indexOf('--passWithNoTests'), 1);
}
testCmd.push(...args);
testCmd.push(...testArgs);
}
const expectedScripts = {