Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Jul 5, 2024
1 parent 727d199 commit 9a43c4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/cmds/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export type testRunArgs = {
shard?: string;
};

export async function executeTests(env: Environment, additionalArgs?: testRunArgs) {
export async function executeTests(env: Environment, testRunArgs?: testRunArgs) {
return new Promise<Vitest>(async (resolve, reject) => {
const globalConfig = await importAsyncConfig();
if (env.foundation.type === "read_only") {
Expand Down Expand Up @@ -112,6 +112,8 @@ export async function executeTests(env: Environment, additionalArgs?: testRunArg
},
} satisfies UserConfig;

const additionalArgs: testRunArgs = testRunArgs || {};

// transform in regexp pattern
if (env.skipTests && env.skipTests.length > 0) {
// the final pattern will look like this: "^((?!SO00T02|SM00T01|SM00T03).)*$"
Expand Down

0 comments on commit 9a43c4f

Please sign in to comment.