Skip to content

Commit

Permalink
Fix indexed-db test
Browse files Browse the repository at this point in the history
  • Loading branch information
hieu-w committed Mar 2, 2025
1 parent d8ad5cd commit 0f2336c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unit/indexed-db.method.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ import { describe, expect, it } from "vitest";
import { IndexedDbMethod } from "../../src/index.js";

console.log(IndexedDbMethod.getIdb);
if (isNode) {
process.on("uncaughtException", (err, origin) => {
console.error("uncaughtException!");
console.dir(err);
console.dir(origin);
process.exit(1);
});
} else {
window.addEventListener("unhandledrejection", (event) => {
console.error("unhandledRejection!");
console.dir(event);
});
}

describe("unit/indexed-db.method.test.js", () => {
if (isNode) return;
Expand Down

0 comments on commit 0f2336c

Please sign in to comment.