@open-mercato/cli 0.5.1-develop.2744.9c8be0dd93 → 0.5.1-develop.2762.90c271efe2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/testing/integration.js +7 -0
- package/dist/lib/testing/integration.js.map +2 -2
- package/dist/mercato.js +74 -33
- package/dist/mercato.js.map +2 -2
- package/package.json +5 -5
- package/src/__tests__/mercato.test.ts +225 -0
- package/src/lib/testing/integration.ts +7 -0
- package/src/mercato.ts +87 -39
|
@@ -78,6 +78,8 @@ const EPHEMERAL_ENV_FILE_PATH = path.join(projectRootDirectory, ".ai", "qa", "ep
|
|
|
78
78
|
const EPHEMERAL_ENV_LOCK_PATH = path.join(projectRootDirectory, ".ai", "qa", "ephemeral-env.lock");
|
|
79
79
|
const LEGACY_EPHEMERAL_ENV_FILE_PATH = path.join(projectRootDirectory, ".ai", "qa", "ephemeral-env.md");
|
|
80
80
|
const EPHEMERAL_BUILD_CACHE_STATE_PATH = path.join(projectRootDirectory, ".ai", "qa", "ephemeral-build-cache.json");
|
|
81
|
+
const EPHEMERAL_CACHE_DB_PATH = path.join(projectRootDirectory, ".ai", "qa", "ephemeral-cache.sqlite");
|
|
82
|
+
const EPHEMERAL_QUEUE_BASE_DIR = path.join(appDirectory, ".mercato", "queue");
|
|
81
83
|
const PLAYWRIGHT_INTEGRATION_CONFIG_PATH = ".ai/qa/tests/playwright.config.ts";
|
|
82
84
|
const PLAYWRIGHT_RESULTS_JSON_PATH = path.join(projectRootDirectory, ".ai", "qa", "test-results", "results.json");
|
|
83
85
|
const LEGACY_INTEGRATION_TEST_ROOT = path.join(projectRootDirectory, ".ai", "qa", "tests");
|
|
@@ -2267,9 +2269,13 @@ async function startEphemeralEnvironment(options) {
|
|
|
2267
2269
|
const databaseHost = databaseContainer.getHost();
|
|
2268
2270
|
const databasePort = databaseContainer.getMappedPort(5432);
|
|
2269
2271
|
const databaseUrl = `postgres://${databaseUser}:${databasePassword}@${databaseHost}:${databasePort}/${databaseName}`;
|
|
2272
|
+
await rm(EPHEMERAL_CACHE_DB_PATH, { force: true }).catch(() => void 0);
|
|
2273
|
+
await rm(EPHEMERAL_QUEUE_BASE_DIR, { recursive: true, force: true }).catch(() => void 0);
|
|
2270
2274
|
const enterpriseModulesFlag = process.env.OM_ENABLE_ENTERPRISE_MODULES ?? "false";
|
|
2271
2275
|
const commandEnvironment = buildEnvironment({
|
|
2272
2276
|
DATABASE_URL: databaseUrl,
|
|
2277
|
+
CACHE_STRATEGY: "sqlite",
|
|
2278
|
+
CACHE_SQLITE_PATH: EPHEMERAL_CACHE_DB_PATH,
|
|
2273
2279
|
BASE_URL: applicationBaseUrl,
|
|
2274
2280
|
APP_URL: applicationBaseUrl,
|
|
2275
2281
|
NEXT_PUBLIC_APP_URL: applicationBaseUrl,
|
|
@@ -2301,6 +2307,7 @@ async function startEphemeralEnvironment(options) {
|
|
|
2301
2307
|
AUTO_SPAWN_SCHEDULER: "false",
|
|
2302
2308
|
OM_CLI_QUIET: "1",
|
|
2303
2309
|
MERCATO_QUIET: "1",
|
|
2310
|
+
QUEUE_BASE_DIR: EPHEMERAL_QUEUE_BASE_DIR,
|
|
2304
2311
|
NODE_NO_WARNINGS: "1",
|
|
2305
2312
|
PORT: String(applicationPort),
|
|
2306
2313
|
PW_CAPTURE_SCREENSHOTS: options.captureScreenshots ? "1" : "0",
|