plum-e2e 2.6.7 → 2.6.8
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.
|
@@ -32,6 +32,14 @@ if (!fs.existsSync(jsonReportFile)) {
|
|
|
32
32
|
// and saves the combined report after all lanes finish.
|
|
33
33
|
if (process.env.PLUM_MODE === 'node') process.exit(0);
|
|
34
34
|
|
|
35
|
+
// `run-test` runs on the host without Docker/Postgres, so DATABASE_URL is
|
|
36
|
+
// never set there — skip the DB save instead of letting Prisma's connection
|
|
37
|
+
// attempt surface as an unhandled-looking stack trace after tests already ran.
|
|
38
|
+
if (!process.env.DATABASE_URL) {
|
|
39
|
+
console.log('No DATABASE_URL configured — skipping report save to database.');
|
|
40
|
+
process.exit(0);
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
(async () => {
|
|
36
44
|
try {
|
|
37
45
|
const raw = JSON.parse(fs.readFileSync(jsonReportFile, 'utf8'));
|