refactor(cli): rename `syncTests` to `runInSync`
MODIFY
internal/core/server/commands/ci.ts
internal/core/server/commands/ci.ts
@@ -69,7 +69,7 @@ export default createServerCommand({
freezeSnapshots: !flags.fix,
updateSnapshots: flags.fix,
showAllCoverage: false,
- syncTests: false,
+ runInSync: false,
sourceMaps: true,
suppressLogs: true,
},

MODIFY
internal/core/server/commands/test.ts
internal/core/server/commands/test.ts
@@ -50,7 +50,7 @@ export default createServerCommand({
"focusAllowed",
{description: markup`prevent tests from being focused`},
).asBoolean(true),
- syncTests: c.get("syncTests", {description: markup`run tests in sync`}).asBoolean(
+ runInSync: c.get("runInSync", {description: markup`run tests in sync`}).asBoolean(
false,
),
sourceMaps: c.get(

MODIFY
internal/core/server/testing/TestServerWorker.ts
internal/core/server/testing/TestServerWorker.ts
@@ -221,7 +221,7 @@ export default class TestServerWorker {
{
type: "log",
category: "info",
- text: markup`You can find the specific test that caused this by running <code>rome test --sync-tests</code>`,
+ text: markup`You can find the specific test that caused this by running <code>rome test --run-in-sync</code>`,
},
],
},

MODIFY
internal/core/server/testing/types.ts
internal/core/server/testing/types.ts
@@ -24,7 +24,7 @@ export type TestServerRunnerOptions = {
updateSnapshots: boolean;
freezeSnapshots: boolean;
verboseDiagnostics: DiagnosticsPrinterFlags["verboseDiagnostics"];
- syncTests: boolean;
+ runInSync: boolean;
sourceMaps: boolean;
suppressLogs: boolean;
};

refactor(cli): rename `syncTests` to `runInSync` (#1466)