chore: bump pnpm to 11.0.1 and align list test assertions
This commit is contained in:
parent
e008b1a23c
commit
a0b6417689
5 changed files with 6 additions and 6 deletions
2
.github/workflows/build-canary-image.yml
vendored
2
.github/workflows/build-canary-image.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4.2.0
|
- uses: pnpm/action-setup@v4.2.0
|
||||||
with:
|
with:
|
||||||
version: 11.0.0
|
version: 11.0.1
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
|
|
|
||||||
2
.github/workflows/frontend-tests.yml
vendored
2
.github/workflows/frontend-tests.yml
vendored
|
|
@ -14,7 +14,7 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "24"
|
NODE_VERSION: "24"
|
||||||
PNPM_VERSION: "11.0.0"
|
PNPM_VERSION: "11.0.1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|
|
||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -16,7 +16,7 @@ permissions:
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.26.2"
|
GO_VERSION: "1.26.2"
|
||||||
NODE_VERSION: "24"
|
NODE_VERSION: "24"
|
||||||
PNPM_VERSION: "11.0.0"
|
PNPM_VERSION: "11.0.1"
|
||||||
ARTIFACT_RETENTION_DAYS: 60
|
ARTIFACT_RETENTION_DAYS: 60
|
||||||
ARTIFACT_PREFIX: memos
|
ARTIFACT_PREFIX: memos
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "memos",
|
"name": "memos",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@11.0.0",
|
"packageManager": "pnpm@11.0.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24"
|
"node": ">=24"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ describe("memo content lists", () => {
|
||||||
expect(html).toContain('<li class="mt-0.5 leading-6">milk</li>');
|
expect(html).toContain('<li class="mt-0.5 leading-6">milk</li>');
|
||||||
expect(html).not.toContain('<li class="mt-0.5 leading-6">\n<p>milk</p>');
|
expect(html).not.toContain('<li class="mt-0.5 leading-6">\n<p>milk</p>');
|
||||||
expect(html).toContain(TASK_LIST_ITEM_CLASS);
|
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(/<li class="[^"]*task-list-item[^"]*"><p\b/);
|
expect(html).not.toMatch(/<li class="[^"]*task-list-item[^"]*"><p\b/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ describe("memo content lists", () => {
|
||||||
it("keeps nested task lists on their own row", () => {
|
it("keeps nested task lists on their own row", () => {
|
||||||
const html = renderListContent("- [ ] asdas\n - [ ] zzzz");
|
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).toContain("[&>ul]:col-start-2");
|
||||||
expect(html).not.toContain("[&_ul.contains-task-list]:ml-6");
|
expect(html).not.toContain("[&_ul.contains-task-list]:ml-6");
|
||||||
expect(html).toContain("zzzz");
|
expect(html).toContain("zzzz");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue