File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/project-utils/testing/presets Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 168
168
"setup-env-files" : " node scripts/setupEnvFiles" ,
169
169
"setup-cypress" : " node scripts/setupCypress" ,
170
170
"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" ,
171
174
"test:unit" : " cross-env TEST_TYPE=unit yarn test" ,
172
175
"test:integration" : " cross-env TEST_TYPE=integration yarn test" ,
173
176
"test:e2e" : " cross-env TEST_TYPE=e2e yarn test" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ import { hideBin } from "yargs/helpers";
6
6
import { PackageJson } from "../../utils/PackageJson.js" ;
7
7
8
8
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
+
10
13
11
14
if ( ! storage ) {
12
15
throw Error ( `Missing required --storage parameter!` ) ;
You can’t perform that action at this time.
0 commit comments