diff --git a/packages/frontend/electron/test/db/migration.spec.ts b/packages/frontend/electron/test/db/migration.spec.ts index 809e05e3b8424..33a624012df74 100644 --- a/packages/frontend/electron/test/db/migration.spec.ts +++ b/packages/frontend/electron/test/db/migration.spec.ts @@ -1,14 +1,15 @@ import path from 'node:path'; -import { - copyToTemp, - migrateToSubdocAndReplaceDatabase, -} from '@affine/electron/helper/db/migration'; import { SqliteConnection } from '@affine/native'; import { removeWithRetry } from '@affine-test/kit/utils/utils'; import { afterEach, describe, expect, it, vi } from 'vitest'; import { applyUpdate, Doc as YDoc } from 'yjs'; +import { + copyToTemp, + migrateToSubdocAndReplaceDatabase, +} from '../../src/helper/db/migration'; + const tmpDir = path.join(__dirname, 'tmp'); const testDBFilePath = path.resolve(__dirname, 'old-db.affine'); diff --git a/packages/frontend/graphql/src/__tests__/fetcher.spec.ts b/packages/frontend/graphql/src/__tests__/fetcher.spec.ts index 50369f6fb39af..586293ae0aa55 100644 --- a/packages/frontend/graphql/src/__tests__/fetcher.spec.ts +++ b/packages/frontend/graphql/src/__tests__/fetcher.spec.ts @@ -80,7 +80,7 @@ describe('GraphQL fetcher', () => { }); expect(fetch.mock.lastCall[1].body).toMatchInlineSnapshot( - '"{\\"query\\":\\"query { field }\\",\\"variables\\":{\\"a\\":false,\\"b\\":null},\\"operationName\\":\\"query\\"}"' + `"{"query":"query { field }","variables":{"a":false,"b":null},"operationName":"query"}"` ); await gql({ @@ -91,7 +91,7 @@ describe('GraphQL fetcher', () => { }); expect(fetch.mock.lastCall[1].body).toMatchInlineSnapshot( - '"{\\"query\\":\\"query { field }\\",\\"variables\\":{\\"a\\":false},\\"operationName\\":\\"query\\"}"' + `"{"query":"query { field }","variables":{"a":false},"operationName":"query"}"` ); });