From a0b64176891d40525c1b8b6634150671a71fdc53 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 30 Apr 2026 20:05:39 +0800 Subject: [PATCH] chore: bump pnpm to 11.0.1 and align list test assertions --- .github/workflows/build-canary-image.yml | 2 +- .github/workflows/frontend-tests.yml | 2 +- .github/workflows/release.yml | 2 +- web/package.json | 2 +- web/tests/memo-content-list.test.tsx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-canary-image.yml b/.github/workflows/build-canary-image.yml index ce32aa28..6b21dfeb 100644 --- a/.github/workflows/build-canary-image.yml +++ b/.github/workflows/build-canary-image.yml @@ -19,7 +19,7 @@ jobs: - uses: pnpm/action-setup@v4.2.0 with: - version: 11.0.0 + version: 11.0.1 - uses: actions/setup-node@v6 with: node-version: "24" diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 10f62b71..d616c622 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -14,7 +14,7 @@ concurrency: env: NODE_VERSION: "24" - PNPM_VERSION: "11.0.0" + PNPM_VERSION: "11.0.1" jobs: lint: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cecba48e..2d0c396a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ permissions: env: GO_VERSION: "1.26.2" NODE_VERSION: "24" - PNPM_VERSION: "11.0.0" + PNPM_VERSION: "11.0.1" ARTIFACT_RETENTION_DAYS: 60 ARTIFACT_PREFIX: memos diff --git a/web/package.json b/web/package.json index 9921d750..f36dd85c 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "memos", "private": true, - "packageManager": "pnpm@11.0.0", + "packageManager": "pnpm@11.0.1", "engines": { "node": ">=24" }, diff --git a/web/tests/memo-content-list.test.tsx b/web/tests/memo-content-list.test.tsx index 9b5abfd0..ab842b52 100644 --- a/web/tests/memo-content-list.test.tsx +++ b/web/tests/memo-content-list.test.tsx @@ -34,7 +34,7 @@ describe("memo content lists", () => { expect(html).toContain('
  • milk
  • '); expect(html).not.toContain('
  • \n

    milk

    '); expect(html).toContain(TASK_LIST_ITEM_CLASS); - expect(html).toContain("grid grid-cols-[auto_1fr] items-center gap-x-2"); + expect(html).toContain("grid grid-cols-[auto_1fr] items-start gap-x-2"); expect(html).not.toMatch(/
  • { it("keeps nested task lists on their own row", () => { const html = renderListContent("- [ ] asdas\n - [ ] zzzz"); - expect(html).toContain("grid grid-cols-[auto_1fr] items-center gap-x-2"); + expect(html).toContain("grid grid-cols-[auto_1fr] items-start gap-x-2"); expect(html).toContain("[&>ul]:col-start-2"); expect(html).not.toContain("[&_ul.contains-task-list]:ml-6"); expect(html).toContain("zzzz");