Skip to content

Commit 04b8ca2

Browse files
committed
fix(project-utils): use env var for storage ops choice
1 parent f3bfc3e commit 04b8ca2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
"setup-env-files": "node scripts/setupEnvFiles",
169169
"setup-cypress": "node scripts/setupCypress",
170170
"test": "vitest --config testing/vitest.config.ts --run",
171+
"test:ddb": "WEBINY_STORAGE=ddb vitest --config testing/vitest.config.ts --run",
172+
"test:es": "WEBINY_STORAGE=ddb-es,ddb vitest --config testing/vitest.config.ts --run",
173+
"test:os": "WEBINY_STORAGE=ddb-es,ddb vitest --config testing/vitest.config.ts --run",
171174
"test:unit": "cross-env TEST_TYPE=unit yarn test",
172175
"test:integration": "cross-env TEST_TYPE=integration yarn test",
173176
"test:e2e": "cross-env TEST_TYPE=e2e yarn test",

packages/project-utils/testing/presets/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { hideBin } from "yargs/helpers";
66
import { PackageJson } from "../../utils/PackageJson.js";
77

88
const getAllPackages = (targetKeywords) => {
9-
const { storage = "ddb" } = yargs(hideBin(process.argv));
9+
10+
const envVarStorage = process.env.WEBINY_STORAGE || "ddb";
11+
const { storage = envVarStorage} = yargs(hideBin(process.argv));
12+
1013

1114
if (!storage) {
1215
throw Error(`Missing required --storage parameter!`);

0 commit comments

Comments
 (0)