Skip to content

Commit 0c8990b

Browse files
committed
test: mock randomUUID from crypto module
1 parent d2d6d54 commit 0c8990b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/visualBuilder/__test__/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ vi.mock("../utils/visualBuilderPostMessage", async () => {
3535
Object.defineProperty(globalThis, "crypto", {
3636
value: {
3737
getRandomValues: (arr: Array<any>) => crypto.randomBytes(arr.length),
38+
randomUUID: () => crypto.randomUUID()
3839
},
3940
});
4041
// Increase the timeout for the test

0 commit comments

Comments
 (0)