From 5df3f64dfb9fdbbbfef0df5c8a95be8df44ad79b Mon Sep 17 00:00:00 2001 From: "N. V. Lang" Date: Thu, 20 Jun 2024 14:15:17 +0200 Subject: [PATCH] ci: wip --- .github/workflows/vitest2.yml | 7 ++++--- tests/unit/utils/TexComponent.test.ts | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vitest2.yml b/.github/workflows/vitest2.yml index 54786d0..eb7e0c5 100644 --- a/.github/workflows/vitest2.yml +++ b/.github/workflows/vitest2.yml @@ -51,9 +51,10 @@ jobs: node-version: lts/* - name: Install Poppler - run: | - sudo apt-get install -y poppler-data - sudo apt-get install -y poppler-utils + run: sudo apt-get install -y poppler-data poppler-utils + + - name: Install MuPDF + run: sudo apt-get install -y mupdf mupdf-tools - name: Install PNPM run: npm install -g pnpm diff --git a/tests/unit/utils/TexComponent.test.ts b/tests/unit/utils/TexComponent.test.ts index 343a800..c3ebbe7 100644 --- a/tests/unit/utils/TexComponent.test.ts +++ b/tests/unit/utils/TexComponent.test.ts @@ -1022,12 +1022,14 @@ describe.concurrent('compile()', () => { expect.stringContaining('\\documentclass'), 'utf8', ); - expect(writeFile).toHaveBeenCalledWith( + expect(writeFile).toHaveBeenNthCalledWith( + 3, `tmp/tests/${id}/output/tex/${ref}.svg`, expect.stringContaining('