diff --git a/library/helpers/getPackageVersion.test.ts b/library/helpers/getPackageVersion.test.ts index 1b328220..1a7556f7 100644 --- a/library/helpers/getPackageVersion.test.ts +++ b/library/helpers/getPackageVersion.test.ts @@ -4,5 +4,5 @@ import { getPackageVersion } from "./getPackageVersion"; t.test("it resolves the version of a package", async (t) => { t.same(getPackageVersion("express"), "5.0.1"); t.same(getPackageVersion("non-existing-package"), null); - t.same(getPackageVersion("@google-cloud/functions-framework"), "3.4.2"); + t.same(getPackageVersion("@google-cloud/functions-framework"), "3.4.3"); }); diff --git a/library/sinks/Prisma.test.ts b/library/sinks/Prisma.test.ts index f9648b20..30a4949a 100644 --- a/library/sinks/Prisma.test.ts +++ b/library/sinks/Prisma.test.ts @@ -49,17 +49,13 @@ t.test("it works with sqlite", testOpts, async (t) => { process.env.DATABASE_URL = "file:./dev.db"; // Generate prismajs client - const { stdout, stderr } = await execAsync( + await execAsync( "npx prisma migrate reset --force", // Generate prisma client, reset db and apply migrations { cwd: path.join(__dirname, "fixtures/prisma/sqlite"), } ); - if (stderr) { - t.fail(stderr); - } - const { PrismaClient } = require("@prisma/client"); const client = new PrismaClient(); @@ -154,17 +150,13 @@ t.test("it works with postgres", testOpts, async (t) => { process.env.DATABASE_URL = "postgres://root:password@127.0.0.1:27016/main_db"; // Generate prismajs client - const { stdout, stderr } = await execAsync( + await execAsync( "npx prisma migrate reset --force", // Generate prisma client, reset db and apply migrations { cwd: path.join(__dirname, "fixtures/prisma/postgres"), } ); - if (stderr) { - t.fail(stderr); - } - // Clear require cache for (const key in require.cache) { delete require.cache[key]; @@ -254,17 +246,13 @@ t.test("it works with mongodb", testOpts, async (t) => { "mongodb://root:password@127.0.0.1:27020/prisma?authSource=admin&directConnection=true"; // Generate prismajs client - const { stdout, stderr } = await execAsync( + await execAsync( "npx prisma generate", // Generate prisma client, reset db and apply migrations { cwd: path.join(__dirname, "fixtures/prisma/mongodb"), } ); - if (stderr) { - t.fail(stderr); - } - // Clear require cache for (const key in require.cache) { delete require.cache[key];