diff --git a/plugins/notion/server/utils/NotionConverter.test.ts b/plugins/notion/server/utils/NotionConverter.test.ts index 9d1a66d27f..babc501a75 100644 --- a/plugins/notion/server/utils/NotionConverter.test.ts +++ b/plugins/notion/server/utils/NotionConverter.test.ts @@ -5,6 +5,10 @@ import allNodes from "@server/test/fixtures/notion-page.json"; import type { NotionPage } from "./NotionConverter"; import { NotionConverter } from "./NotionConverter"; +jest.mock("node:crypto", () => ({ + randomUUID: jest.fn(() => "550e8400-e29b-41d4-a716-446655440000"), +})); + describe("NotionConverter", () => { it("converts a page", () => { const response = NotionConverter.page({ diff --git a/plugins/notion/server/utils/__snapshots__/NotionConverter.test.ts.snap b/plugins/notion/server/utils/__snapshots__/NotionConverter.test.ts.snap index 8f3d996a28..ce0bede32e 100644 --- a/plugins/notion/server/utils/__snapshots__/NotionConverter.test.ts.snap +++ b/plugins/notion/server/utils/__snapshots__/NotionConverter.test.ts.snap @@ -608,7 +608,7 @@ exports[`NotionConverter converts a page 1`] = ` }, { "attrs": { - "id": "dbbc3e60-556f-4605-90bd-104549175d0a", + "id": "550e8400-e29b-41d4-a716-446655440000", }, "content": [ { @@ -636,7 +636,7 @@ exports[`NotionConverter converts a page 1`] = ` }, { "attrs": { - "id": "28cfd075-c823-4fd8-87aa-7a7dbe0c6b43", + "id": "550e8400-e29b-41d4-a716-446655440000", }, "content": [ { @@ -670,7 +670,7 @@ exports[`NotionConverter converts a page 1`] = ` }, { "attrs": { - "id": "00fd4f20-7731-41c6-b813-b6f75d6dc756", + "id": "550e8400-e29b-41d4-a716-446655440000", }, "content": [ { @@ -1944,7 +1944,7 @@ exports[`NotionConverter converts a page 1`] = ` }, { "attrs": { - "id": "34e5d753-324f-4e7a-86d3-ed205eea89e1", + "id": "550e8400-e29b-41d4-a716-446655440000", }, "content": [ { @@ -1980,7 +1980,7 @@ exports[`NotionConverter converts a page 1`] = ` }, { "attrs": { - "id": "9479afdb-1169-415f-bf5e-0f00d2145702", + "id": "550e8400-e29b-41d4-a716-446655440000", }, "content": [ {