Skip to content

Commit 8930977

Browse files
committed
tests: add v1 database functions
1 parent 7a30831 commit 8930977

File tree

4 files changed

+320
-321
lines changed

4 files changed

+320
-321
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as admin from "firebase-admin";
2-
// import * as v1 from "./v1";
2+
import * as v1 from "./v1";
33
import * as v2 from "./v2";
44

5-
export { v2 };
5+
export { v1, v2 };
66

77
admin.initializeApp();
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export * from "./analytics-tests";
1+
// export * from "./analytics-tests";
22
// export * from "./auth-tests";
33
export * from "./database-tests";
4-
export * from "./firestore-tests";
4+
// export * from "./firestore-tests";
55
// Temporarily disable http test - will not work unless running on projects w/ permission to create public functions.
66
// export * from "./https-tests";
7-
export * from "./pubsub-tests";
8-
export * from "./remoteConfig-tests";
9-
export * from "./storage-tests";
10-
export * from "./tasks-tests";
11-
export * from "./testLab-tests";
7+
// export * from "./pubsub-tests";
8+
// export * from "./remoteConfig-tests";
9+
// export * from "./storage-tests";
10+
// export * from "./tasks-tests";
11+
// export * from "./testLab-tests";

integration_test/run.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,10 @@ async function runTests(): Promise<void> {
299299
const humanReadableRuntime = TEST_RUNTIME === "node" ? "Node.js" : "Python";
300300
try {
301301
logger.info(`Starting ${humanReadableRuntime} Tests...`);
302-
logger.info("Running: database test only");
303-
logger.info("Test file: integration_test/tests/v2/database.test.ts");
302+
logger.info("Running all integration tests");
304303

305-
// Run only the database test
306-
const output = await spawnAsync("npx", ["jest", "--testPathPattern=database.test.ts", "--verbose"], {
304+
// Run all tests
305+
const output = await spawnAsync("npx", ["jest", "--verbose"], {
307306
env: {
308307
...process.env,
309308
TEST_RUN_ID,
@@ -315,8 +314,8 @@ async function runTests(): Promise<void> {
315314

316315
// Check if tests passed
317316
if (output.includes("PASS") && !output.includes("FAIL")) {
318-
logger.success("Database tests completed successfully!");
319-
logger.success("All database function triggers are working correctly.");
317+
logger.success("All tests completed successfully!");
318+
logger.success("All function triggers are working correctly.");
320319
} else {
321320
logger.warning("Some tests may have failed. Check the output above.");
322321
}

0 commit comments

Comments
 (0)