@cedarjs/cli 7.0.0-rc.123 → 7.0.0-rc.127
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/commands/test/testHandlerEsm.js +10 -1
- package/package.json +13 -13
|
@@ -68,6 +68,7 @@ const handler = async ({
|
|
|
68
68
|
const cacheDirDb = `file:${ensurePosixPath(
|
|
69
69
|
rwjsPaths.generated.base
|
|
70
70
|
)}/test.db`;
|
|
71
|
+
const mainDatabaseUrl = process.env.DATABASE_URL;
|
|
71
72
|
const DATABASE_URL = process.env.TEST_DATABASE_URL || cacheDirDb;
|
|
72
73
|
if (sides.includes("api") && !dbPush) {
|
|
73
74
|
process.env.SKIP_DB_PUSH = "1";
|
|
@@ -79,7 +80,15 @@ const handler = async ({
|
|
|
79
80
|
await runBin("vitest", vitestArgs, {
|
|
80
81
|
cwd: rwjsPaths.base,
|
|
81
82
|
stdio: "inherit",
|
|
82
|
-
env: {
|
|
83
|
+
env: {
|
|
84
|
+
...process.env,
|
|
85
|
+
DATABASE_URL,
|
|
86
|
+
// Always set, even to '', so CedarApiVitestEnv can tell "there's
|
|
87
|
+
// no real DATABASE_URL to compare against" apart from "this isn't
|
|
88
|
+
// running through `cedar test` at all" (e.g. a direct `vitest`
|
|
89
|
+
// invocation, whose own DATABASE_URL hasn't been touched yet).
|
|
90
|
+
CEDAR_APP_DATABASE_URL: mainDatabaseUrl ?? ""
|
|
91
|
+
}
|
|
83
92
|
});
|
|
84
93
|
};
|
|
85
94
|
if (watch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.127",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@babel/preset-typescript": "7.29.7",
|
|
37
37
|
"@babel/traverse": "7.29.8",
|
|
38
38
|
"@babel/types": "7.29.8",
|
|
39
|
-
"@cedarjs/api-server": "7.0.0-rc.
|
|
40
|
-
"@cedarjs/babel-config": "7.0.0-rc.
|
|
41
|
-
"@cedarjs/cli-helpers": "7.0.0-rc.
|
|
42
|
-
"@cedarjs/internal": "7.0.0-rc.
|
|
43
|
-
"@cedarjs/prerender": "7.0.0-rc.
|
|
44
|
-
"@cedarjs/project-config": "7.0.0-rc.
|
|
45
|
-
"@cedarjs/structure": "7.0.0-rc.
|
|
46
|
-
"@cedarjs/telemetry": "7.0.0-rc.
|
|
47
|
-
"@cedarjs/utils": "7.0.0-rc.
|
|
48
|
-
"@cedarjs/vite": "7.0.0-rc.
|
|
49
|
-
"@cedarjs/web-server": "7.0.0-rc.
|
|
39
|
+
"@cedarjs/api-server": "7.0.0-rc.127",
|
|
40
|
+
"@cedarjs/babel-config": "7.0.0-rc.127",
|
|
41
|
+
"@cedarjs/cli-helpers": "7.0.0-rc.127",
|
|
42
|
+
"@cedarjs/internal": "7.0.0-rc.127",
|
|
43
|
+
"@cedarjs/prerender": "7.0.0-rc.127",
|
|
44
|
+
"@cedarjs/project-config": "7.0.0-rc.127",
|
|
45
|
+
"@cedarjs/structure": "7.0.0-rc.127",
|
|
46
|
+
"@cedarjs/telemetry": "7.0.0-rc.127",
|
|
47
|
+
"@cedarjs/utils": "7.0.0-rc.127",
|
|
48
|
+
"@cedarjs/vite": "7.0.0-rc.127",
|
|
49
|
+
"@cedarjs/web-server": "7.0.0-rc.127",
|
|
50
50
|
"@listr2/prompt-adapter-enquirer": "4.3.2",
|
|
51
51
|
"@opentelemetry/api": "1.9.1",
|
|
52
52
|
"@opentelemetry/core": "2.11.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"yargs": "17.7.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/framework-tools": "7.0.0-rc.
|
|
97
|
+
"@cedarjs/framework-tools": "7.0.0-rc.127",
|
|
98
98
|
"@prisma/dmmf": "7.8.0",
|
|
99
99
|
"@types/archiver": "^7.0.0",
|
|
100
100
|
"memfs": "4.78.1",
|