Skip to content

Commit

Permalink
ci: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nvlang committed Jun 20, 2024
1 parent 2f209c5 commit 5df3f64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/vitest2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/utils/TexComponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<svg'),
'utf8',
);
expect(writeFile).toHaveBeenCalledWith(

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > pdflatex (pdf) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/43bcee5d-5e4c-49d6-a6c8-3b64fa26eaec/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/43bcee5d-5e4c-49d6-a6c8-3b64fa26eaec/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/43bcee5d-5e4c-49d6-a6c8-3b64fa26eaec/cache/tex/ref/root.tex", + "\\documentclass{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/43bcee5d-5e4c-49d6-a6c8-3b64fa26eaec/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/43bcee5d-5e4c-49d6-a6c8-3b64fa26eaec/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"7.592\" height=\"4.289pt\" viewBox=\"0 0 5.694 4.289\"><style>@font-face{font-family:MHOLNP-CMMI10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ0AAoAAAAABGQAAAIrAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgmgHIBuIA0AehXEbHUIR714RdkZDBNF+v9n9qqhnK4UQX0OrSaIT6u+R0Knc0P7ee98Y6QaCdQtNLk92n+8m/3fgF9C0hZR4trUNdGkc2KJIo41jKQbsmbu2TV4SDdvlpeTnhloeQhUASS5gp/8M5dWPReI8sNAmXKB09xrnD1C++tVAQU1EbZYCEjXM05s5hF1AXV3gqxRbLT/4KFGiWAHugVX4PVH5O/E1gIzR3XvXejyzFmTINbCtOM2dcdSIjRgVnfE0j4sW92YMCNUyheevee/vIUtCfTdONSwsdSyZis2S6679t/LN16r9h9wNC3NDUOawaB+LyI4UY8RZSaB4R4nCWZ9lr8Zhgyde6WMYF91PZfrwi4dW9rEJulAFFfvwRCiXWBH8fuYfi69zBXJEsXBYgE47VS5bzg4PfRTjsouSrg+P0OfWy3aZ2vgXGWp6CBEZ646Yx1O6m7kFABAIFqlQpjtZ6x0Dr4PfxjPF0QYof8kF7aEt4QZrCvIS8JD26wAE6CETegipArWElnV9M0YkWN3ASFlDz+aMbxo42e5apwQu6h1hmw3xdetC+IZleXzTupa868LcgTa/67xubWZrZWMnbWhtbS4vd1HuysvIeUrPn0M+cYHRcf6hfIoyCv0xMBQuVIRYMXxF4WMtnI8g7LkZW1Zs2JFmyJo1c/LkuMR8NVqgcGH4yJMhh4CpFYayPPeCT+Al0cp9xAkUPecvFB9FMhSyCAdDAA==) format('woff2');} + text.f0 {font-family:MHOLNP-CMMI10;font-size:9.96px} + </style><g id=\"page1\"><text class=\"f0\" transform=\"translate(0 4.289)scale(.999739)\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/43bcee5d-5e4c-49d6-a6c8-3b64fa26eaec/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > pdflatex (pdf) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/aa3bd896-242d-45c5-ad6a-68c1f8fc92cd/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/aa3bd896-242d-45c5-ad6a-68c1f8fc92cd/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/aa3bd896-242d-45c5-ad6a-68c1f8fc92cd/cache/tex/ref/root.tex", + "\\documentclass{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/aa3bd896-242d-45c5-ad6a-68c1f8fc92cd/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/aa3bd896-242d-45c5-ad6a-68c1f8fc92cd/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"7.592\" height=\"4.289pt\" viewBox=\"0 0 5.694 4.289\"><style>@font-face{font-family:MHOLNP-CMMI10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ0AAoAAAAABGQAAAIrAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgmgHIBuIA0AehXEbHUIR714RdkZDBNF+v9n9qqhnK4UQX0OrSaIT6u+R0Knc0P7ee98Y6QaCdQtNLk92n+8m/3fgF9C0hZR4trUNdGkc2KJIo41jKQbsmbu2TV4SDdvlpeTnhloeQhUASS5gp/8M5dWPReI8sNAmXKB09xrnD1C++tVAQU1EbZYCEjXM05s5hF1AXV3gqxRbLT/4KFGiWAHugVX4PVH5O/E1gIzR3XvXejyzFmTINbCtOM2dcdSIjRgVnfE0j4sW92YMCNUyheevee/vIUtCfTdONSwsdSyZis2S6679t/LN16r9h9wNC3NDUOawaB+LyI4UY8RZSaB4R4nCWZ9lr8Zhgyde6WMYF91PZfrwi4dW9rEJulAFFfvwRCiXWBH8fuYfi69zBXJEsXBYgE47VS5bzg4PfRTjsouSrg+P0OfWy3aZ2vgXGWp6CBEZ646Yx1O6m7kFABAIFqlQpjtZ6x0Dr4PfxjPF0QYof8kF7aEt4QZrCvIS8JD26wAE6CETegipArWElnV9M0YkWN3ASFlDz+aMbxo42e5apwQu6h1hmw3xdetC+IZleXzTupa868LcgTa/67xubWZrZWMnbWhtbS4vd1HuysvIeUrPn0M+cYHRcf6hfIoyCv0xMBQuVIRYMXxF4WMtnI8g7LkZW1Zs2JFmyJo1c/LkuMR8NVqgcGH4yJMhh4CpFYayPPeCT+Al0cp9xAkUPecvFB9FMhSyCAdDAA==) format('woff2');} + text.f0 {font-family:MHOLNP-CMMI10;font-size:9.96px} + </style><g id=\"page1\"><text class=\"f0\" transform=\"translate(0 4.289)scale(.999739)\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/aa3bd896-242d-45c5-ad6a-68c1f8fc92cd/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > pdflatex (pdf) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/b0a964c1-5034-49b4-b06b-14d6885b6eae/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/b0a964c1-5034-49b4-b06b-14d6885b6eae/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/b0a964c1-5034-49b4-b06b-14d6885b6eae/cache/tex/ref/root.tex", + "\\documentclass{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/b0a964c1-5034-49b4-b06b-14d6885b6eae/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/b0a964c1-5034-49b4-b06b-14d6885b6eae/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"7.592\" height=\"4.289pt\" viewBox=\"0 0 5.694 4.289\"><style>@font-face{font-family:MHOLNP-CMMI10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ8AAoAAAAABGQAAAIwAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgmgHIBuIA0AehenGukWc/vsVOxOGCOL3a7PvEJdsDUIhxN/QqtpJZq3QyEdoEvpV3tD+3nsfxugIsIFgqVtkebL7fDf5vwO/gKYtpMSzrW2gS+PAFkUabRxLMWDP3LVt8pJo2C4vJT83lNJU3AEk6QN299+lofqxSCxEPbQGLlDaPEiPACin/UoySiJqM2eQUEJXetMFYQxQpUrgNGdbzTf4KKFEsQBsAavwe6KI8JZ0gsK5sw+/DjzzGRTqdXJ2vdfvea1qs9bV96KeBdWascJJRRtTufEi/viAbCvGX71bWax2VpFhj+aB38Sbfs+L6cSVsHNzfRoqmlEdZ6mcajFmfYxkNadGFH5HsYcZzxXfvGqB6SqPfNZbwMvbfdz5RbqikYr92SXcauzKv7+kbeoHgiheMovnCIbcTQVu/MFAC1TX9zClwAK+ayE0L/FdPvyfaVlaVRC7Pr0wv3N0fwdHACAQfORBVwHk5QqmVAX+uu6NRhsgV9JQfKFOghssyUgrQETbrwMBekgJeghJAWoJLWtwzWglwao0a1VWrdHQjK/RbHa7wQAjcFFVL4xwJb7KgFi+Wo9yvsaA3rzBovUDbX7Xed3F3s3Z1V3bysXFQV/votzV19HzlJ4/h0LTo1LSI+IkhjoG/TGwkiBOojSpwiSTcJEgVBD/3J4bZ67cabPiwoUDfXp8Y76aIkqCeBL6dOghYGfFo6ygvRAaBMuy8lDpoqTMRYgjYUiHQRbhYAgAAAAA) format('woff2');} + text.f0 {font-family:MHOLNP-CMMI10;font-size:9.96px} + </style><g id=\"page1\"><text class=\"f0\" transform=\"translate(0 4.289)scale(.999739)\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/b0a964c1-5034-49b4-b06b-14d6885b6eae/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > pdflatex (dvi) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/062246dd-aeab-4cc8-9a26-d0183e36bb15/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/062246dd-aeab-4cc8-9a26-d0183e36bb15/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/062246dd-aeab-4cc8-9a26-d0183e36bb15/cache/tex/ref/root.tex", + "\\documentclass[dvisvgm]{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/062246dd-aeab-4cc8-9a26-d0183e36bb15/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/062246dd-aeab-4cc8-9a26-d0183e36bb15/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"8.946451pt\" height=\"8.498132pt\" viewBox=\"-73.703616 -74.106563 8.946451 8.498132\"><style>@font-face{font-family:cmmi10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ8AAoAAAAABDwAAAIxAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgj4HIBteAwAuDjI35E0LLpVNCTFFzDdP4gF+f7zn3ocPDmBTm+OWAX4rDlB2ntMa2BGS697AOB2hSN9RiKxspBKYMjPTk70lYKBaNYvo6DX/39vzPQ98A/rhhjjxWV8v0GadeGBppNG8zxeAApR0m2KdEcvG9AuirxuSuCOclRGvx7f/R2qfdXhoFoUyWA4PmPa2tB+Q65yXKJAIus2iABEJRvY3I0FMBZBKBXQWRTQujlVoIo0MN2EfPPyesOnA2qkDgMFvvzZcqRh1CTDoAOMkY+8dq0ex4m16xxtelzfP1i1IeqnS/Tf+16Gnkrn3jIujaX20evOw+jx7/qtx+M0+/8gdONhbAg7dl8/RZDdQVjItouYbC4Hd35BysOLoqp2rSkd+6OfpVeAP9bfGrW2QJR1E5LfGyjPzT8Tfv6bVKs85ZawKGisMuJedk2BP5LrykR+trXUljasmORvXb73+n129ZKcEO/JVOuL7AnJOaA0QEHhC4mlHzdJ/pUkKfnhniT8CUPyL7eENSkUQSBSI7SbTxomAYDvGduJqkwERbVJRiCEo10+BGgpdKlezF5kKo0QuN3W73HgyYCEtE0zmNJGqtF1kRisXuUqDodxiLUfaf9i5t6eu7tACwx25NeoMZPTkmSqsOdTSfqBuqllnwscAjwZ1GrVptU+zqWIa7PWlenvUqXPIAgZZvN3ikAb1pk51DCoEsvrsbFdF7E3m6zJVoXaH5GvtDqgDc2ZaFRicAAAA) format('woff2');} + text.f0 {font-family:cmmi10;font-size:9.96264px} + </style><g id=\"page1\"><text class=\"f0\" x=\"-72.000004\" y=\"-67.710548\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/062246dd-aeab-4cc8-9a26-d0183e36bb15/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"Mys9UkpnKsEO_q3Dor2OGZfeNqI12pmzqTjHGlqT9CU\",\"hash\":\"zM8zUADrdOaZ8NJmLj2N3Oq9FoBv5hfYtRQcH8S2GYE\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"zM8zUADrdOaZ8NJmLj2N3Oq9FoBv5hfYtRQcH8S2GYE\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > pdflatex (dvi) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/1aa67f8b-1c08-4110-9abe-d79e94464c05/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/1aa67f8b-1c08-4110-9abe-d79e94464c05/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/1aa67f8b-1c08-4110-9abe-d79e94464c05/cache/tex/ref/root.tex", + "\\documentclass[dvisvgm]{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/1aa67f8b-1c08-4110-9abe-d79e94464c05/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/1aa67f8b-1c08-4110-9abe-d79e94464c05/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"8.946451pt\" height=\"8.498132pt\" viewBox=\"-73.703616 -74.106563 8.946451 8.498132\"><style>@font-face{font-family:cmmi10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ8AAoAAAAABDwAAAIxAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgj4HIBteAwAuDjI35E0LLpVNCTFFzDdP4gF+f7zn3ocPDmBTm+OWAX4rDlB2ntMa2BGS697AOB2hSN9RiKxspBKYMjPTk70lYKBaNYvo6DX/39vzPQ98A/rhhjjxWV8v0GadeGBppNG8zxeAApR0m2KdEcvG9AuirxuSuCOclRGvx7f/R2qfdXhoFoUyWA4PmPa2tB+Q65yXKJAIus2iABEJRvY3I0FMBZBKBXQWRTQujlVoIo0MN2EfPPyesOnA2qkDgMFvvzZcqRh1CTDoAOMkY+8dq0ex4m16xxtelzfP1i1IeqnS/Tf+16Gnkrn3jIujaX20evOw+jx7/qtx+M0+/8gdONhbAg7dl8/RZDdQVjItouYbC4Hd35BysOLoqp2rSkd+6OfpVeAP9bfGrW2QJR1E5LfGyjPzT8Tfv6bVKs85ZawKGisMuJedk2BP5LrykR+trXUljasmORvXb73+n129ZKcEO/JVOuL7AnJOaA0QEHhC4mlHzdJ/pUkKfnhniT8CUPyL7eENSkUQSBSI7SbTxomAYDvGduJqkwERbVJRiCEo10+BGgpdKlezF5kKo0QuN3W73HgyYCEtE0zmNJGqtF1kRisXuUqDodxiLUfaf9i5t6eu7tACwx25NeoMZPTkmSqsOdTSfqBuqllnwscAjwZ1GrVptU+zqWIa7PWlenvUqXPIAgZZvN3ikAb1pk51DCoEsvrsbFdF7E3m6zJVoXaH5GvtDqgDc2ZaFRicAAAA) format('woff2');} + text.f0 {font-family:cmmi10;font-size:9.96264px} + </style><g id=\"page1\"><text class=\"f0\" x=\"-72.000004\" y=\"-67.710548\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/1aa67f8b-1c08-4110-9abe-d79e94464c05/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"Mys9UkpnKsEO_q3Dor2OGZfeNqI12pmzqTjHGlqT9CU\",\"hash\":\"zM8zUADrdOaZ8NJmLj2N3Oq9FoBv5hfYtRQcH8S2GYE\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"zM8zUADrdOaZ8NJmLj2N3Oq9FoBv5hfYtRQcH8S2GYE\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > pdflatex (dvi) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/5b32de93-f98a-46f5-b2da-05d996a07479/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/5b32de93-f98a-46f5-b2da-05d996a07479/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/5b32de93-f98a-46f5-b2da-05d996a07479/cache/tex/ref/root.tex", + "\\documentclass[dvisvgm]{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/5b32de93-f98a-46f5-b2da-05d996a07479/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/5b32de93-f98a-46f5-b2da-05d996a07479/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"8.946451pt\" height=\"8.498132pt\" viewBox=\"-73.703616 -74.106563 8.946451 8.498132\"><style>@font-face{font-family:cmmi10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJsAAoAAAAABDwAAAIgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgj4HIBteAwAeB3asMQiD+PEgXGhlEUE2bLN75SmlCQ/GIGSrQnVFsAiLUUiN8Og72N9779sjEQEnNst1C40oT3b/39vzPQ98A/rhhjjxWV8v0GadeGBppNG8zxeAApR0m2KdEcvG9AuirxtK3iDlgCV/UCf/HGWzRg4NjoMI6/DA9PicEQk4H/MKDBSh2xwDJArW+ps1GEdAVQU+xojG47tCkzQyPAOeAA+/J84ifSXrIXdk5y6gjsytgVzNesGy7+ypcLXisG3hqXjTmEJRT26/bA1Xbu5K4u4OsSjbe+1bzePV8vJ0mlTWAvputJquDPoOxOrnZweRvCGFXp78tipn2E9XumhblyFSl+9lKOxOpt5aETjnXY+lVujzhBah0XG2bDmTeJ9EKVNelvl6klpSWhONFk7hCTtDh6eBqIdIe5AVjnPRycixQidZiVkW+E+u/8kvmATJUjlrPoQHLXagkzMABIJflsfRDd30jVAq+Gs41Ys/AsZ/viG7wJQEQTGQbyBOLUUBAduZbwB5CuIQpDMVRQzBjE8KLFJ0Vbe4F82sddF1R9szdshDizotHLA0Uc25Fs2GGNHN+QozThQfaf9h515ofHy0luYdudVS1ySjJ89UWEZ0akZkvKSOujY+BhuJ4iVJlyZcCkluEoX5UoJQ8eJF06LJn7dTRUuUQHKqTlMFhywhOwuuiLBkiGySwmSIlq9liBQPOpn2qtDgBAAAAAA=) format('woff2');} + text.f0 {font-family:cmmi10;font-size:9.96264px} + </style><g id=\"page1\"><text class=\"f0\" x=\"-72.000004\" y=\"-67.710548\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/5b32de93-f98a-46f5-b2da-05d996a07479/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"Mys9UkpnKsEO_q3Dor2OGZfeNqI12pmzqTjHGlqT9CU\",\"hash\":\"zM8zUADrdOaZ8NJmLj2N3Oq9FoBv5hfYtRQcH8S2GYE\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"zM8zUADrdOaZ8NJmLj2N3Oq9FoBv5hfYtRQcH8S2GYE\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > lualatex (pdf) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/24f5e886-55c6-46a6-99f4-4521ece6cf08/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/24f5e886-55c6-46a6-99f4-4521ece6cf08/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/24f5e886-55c6-46a6-99f4-4521ece6cf08/cache/tex/ref/root.tex", + "\\documentclass{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/24f5e886-55c6-46a6-99f4-4521ece6cf08/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/24f5e886-55c6-46a6-99f4-4521ece6cf08/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"7.592\" height=\"4.289pt\" viewBox=\"0 0 5.694 4.289\"><style>@font-face{font-family:MHOLNP-CMMI10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ0AAoAAAAABGQAAAIrAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgmgHIBuIA0AehXEbHUIR714RdkZDBNF+v9n9qqhnK4UQX0OrSaIT6u+R0Knc0P7ee98Y6QaCdQtNLk92n+8m/3fgF9C0hZR4trUNdGkc2KJIo41jKQbsmbu2TV4SDdvlpeTnhloeQhUASS5gp/8M5dWPReI8sNAmXKB09xrnD1C++tVAQU1EbZYCEjXM05s5hF1AXV3gqxRbLT/4KFGiWAHugVX4PVH5O/E1gIzR3XvXejyzFmTINbCtOM2dcdSIjRgVnfE0j4sW92YMCNUyheevee/vIUtCfTdONSwsdSyZis2S6679t/LN16r9h9wNC3NDUOawaB+LyI4UY8RZSaB4R4nCWZ9lr8Zhgyde6WMYF91PZfrwi4dW9rEJulAFFfvwRCiXWBH8fuYfi69zBXJEsXBYgE47VS5bzg4PfRTjsouSrg+P0OfWy3aZ2vgXGWp6CBEZ646Yx1O6m7kFABAIFqlQrDtZ6x0Dr4PfxjOV0QYof8kF7aEt4QZrCvIS8JD26wAE6CETegipArWElnV9M0YkWN3ASFlDz+aMbxo42e5apwQu6h1hmw3xdetC+IZleXzTupa868LcgTa/67xubWZrZWMnbWhtbS4vd1HuysvIeUrPn0M+cYHRcf6hfIoyCv0xMBQuVIRYMXxF4WMtnI8g7LkZW1Zs2JFmyJo1c/LkuMR8NVqgcGH4yJMhh4CpFYayPPeCT+Al0cp9xAkUPecvFB9FMhSyCAdDAA==) format('woff2');} + text.f0 {font-family:MHOLNP-CMMI10;font-size:9.96px} + </style><g id=\"page1\"><text class=\"f0\" transform=\"translate(0 4.289)scale(.999735)\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/24f5e886-55c6-46a6-99f4-4521ece6cf08/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Xj1q4uUSZ6Mf-UTFY_PiI0Ph0mkFv2DzT3XqBSZNs1I\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"Xj1q4uUSZ6Mf-UTFY_PiI0Ph0mkFv2DzT3XqBSZNs1I\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > lualatex (pdf) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/c609a7ff-a759-42a8-a881-835bcf129fc1/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/c609a7ff-a759-42a8-a881-835bcf129fc1/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/c609a7ff-a759-42a8-a881-835bcf129fc1/cache/tex/ref/root.tex", + "\\documentclass{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/c609a7ff-a759-42a8-a881-835bcf129fc1/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/c609a7ff-a759-42a8-a881-835bcf129fc1/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"7.592\" height=\"4.289pt\" viewBox=\"0 0 5.694 4.289\"><style>@font-face{font-family:MHOLNP-CMMI10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ0AAoAAAAABGQAAAIrAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgmgHIBuIA0AehXEbHUIR714RdkZDBNF+v9n9qqhnK4UQX0OrSaIT6u+R0Knc0P7ee98Y6QaCdQtNLk92n+8m/3fgF9C0hZR4trUNdGkc2KJIo41jKQbsmbu2TV4SDdvlpeTnhloeQhUASS5gp/8M5dWPReI8sNAmXKB09xrnD1C++tVAQU1EbZYCEjXM05s5hF1AXV3gqxRbLT/4KFGiWAHugVX4PVH5O/E1gIzR3XvXejyzFmTINbCtOM2dcdSIjRgVnfE0j4sW92YMCNUyheevee/vIUtCfTdONSwsdSyZis2S6679t/LN16r9h9wNC3NDUOawaB+LyI4UY8RZSaB4R4nCWZ9lr8Zhgyde6WMYF91PZfrwi4dW9rEJulAFFfvwRCiXWBH8fuYfi69zBXJEsXBYgE47VS5bzg4PfRTjsouSrg+P0OfWy3aZ2vgXGWp6CBEZ646Yx1O6m7kFABAIFqlQrDtZ6x0Dr4PfxjOV0QYof8kF7aEt4QZrCvIS8JD26wAE6CETegipArWElnV9M0YkWN3ASFlDz+aMbxo42e5apwQu6h1hmw3xdetC+IZleXzTupa868LcgTa/67xubWZrZWMnbWhtbS4vd1HuysvIeUrPn0M+cYHRcf6hfIoyCv0xMBQuVIRYMXxF4WMtnI8g7LkZW1Zs2JFmyJo1c/LkuMR8NVqgcGH4yJMhh4CpFYayPPeCT+Al0cp9xAkUPecvFB9FMhSyCAdDAA==) format('woff2');} + text.f0 {font-family:MHOLNP-CMMI10;font-size:9.96px} + </style><g id=\"page1\"><text class=\"f0\" transform=\"translate(0 4.289)scale(.999735)\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/c609a7ff-a759-42a8-a881-835bcf129fc1/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"34IHGplkD71c6_np1gn-Ck_yZT9eCEhYrMk2Yy7BFPo\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"34IHGplkD71c6_np1gn-Ck_yZT9eCEhYrMk2Yy7BFPo\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > lualatex (pdf) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/cce7d1c0-df2e-4244-969f-a6def2d28bd2/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/cce7d1c0-df2e-4244-969f-a6def2d28bd2/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/cce7d1c0-df2e-4244-969f-a6def2d28bd2/cache/tex/ref/root.tex", + "\\documentclass{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/cce7d1c0-df2e-4244-969f-a6def2d28bd2/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/cce7d1c0-df2e-4244-969f-a6def2d28bd2/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"7.592\" height=\"4.289pt\" viewBox=\"0 0 5.694 4.289\"><style>@font-face{font-family:MHOLNP-CMMI10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJ8AAoAAAAABGQAAAIwAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgmgHIBuIA0AehenGukWc/vsVOxOGeHj+8HfubezFywokwG9NXYPyaC2TLP6BDfCvvaH9vfc+jNERYAPBUrfI8mT3+W7yfwd+AU1bSIlnW9tAl8aBLYo02jiWYsCeuWvb5CXRsF1eSn5uqMv5uANI8gN299+vofqxSKxGC7QRLlDaO02PAChX/eoU1ImozVJAog796U0/hGlAvXqBq1Jstdzgo0SJYgWwD6zC74lKhLekExTOnX34deCZz6BQr5Oz671+z2tVm7Wuvhf1LKjWjBVOKtqYyo0X8ccHZFsx/urdymK1s4oMezQP/Cbe9HteTCeuhJ2b69NQ0YzqOEvlVIsx62Mkqzk1ovA7ij3MeK74ji0LTH915LPeAl496OPOL9IVjVTszxHhVmNX/v0l7VY/EETxklk8RzDkbipw4w8GWqD6v4cpBRbwIwuheYnv8uH/Yuf6loLY/+mF+V2m+zs4AgCB4CMPOg4gb9QwdfXgr+vedLQBSi3H4wvNEm6wTkFuAhFtvw4E6CETegipAmoJLWt1zegiwep16FLWoM34jG/UYWm71SgjcFHfIkxyJb7eqFi+waByvtGo3rzVmvUDbX7Xed3F3s3Z1V3bysXFQV/votzV19HzlJ4/h0LTo1LSI+IkhjoG/TGwkiBOojSpwiSTcJEgVBD/3J4bZ67cabPiwoUDfXp8Y76aIkqCeBL6dOghYGfFo6ygvRAaBMuy8lDpoqTMRYgjYUiHQRbhYAgAAAAA) format('woff2');} + text.f0 {font-family:MHOLNP-CMMI10;font-size:9.96px} + </style><g id=\"page1\"><text class=\"f0\" transform=\"translate(0 4.289)scale(.999735)\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/cce7d1c0-df2e-4244-969f-a6def2d28bd2/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"gMmLHNZccpUCQdz8BSyplKkQKnfaJdHijj5DcBy1P9U\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"gMmLHNZccpUCQdz8BSyplKkQKnfaJdHijj5DcBy1P9U\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39

Check failure on line 1031 in tests/unit/utils/TexComponent.test.ts

View workflow job for this annotation

GitHub Actions / test

tests/unit/utils/TexComponent.test.ts > compile() > caching > lualatex (dvi) + dvisvgm

AssertionError: expected "writeFile" to be called with arguments: [ 4, …(3) ] Received: 1st writeFile call: Array [ - 4, "tmp/tests/9664d227-d3cc-49e7-b404-1d77220de76f/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - 4, - "tmp/tests/9664d227-d3cc-49e7-b404-1d77220de76f/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/9664d227-d3cc-49e7-b404-1d77220de76f/cache/tex/ref/root.tex", + "\\documentclass[dvisvgm]{standalone} + \\usepackage{microtype} + \\makeatletter + \\@ifpackageloaded{xcolor}{}{\\usepackage{xcolor}} + \\makeatother + + + + \\begin{document} + $x$ + \\end{document} + ", "utf8", ] 3rd writeFile call: Array [ - 4, - "tmp/tests/9664d227-d3cc-49e7-b404-1d77220de76f/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "tmp/tests/9664d227-d3cc-49e7-b404-1d77220de76f/output/tex/ref.svg", + "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"8.946451pt\" height=\"8.498132pt\" viewBox=\"-73.703616 -74.106563 8.946451 8.498132\"><style>@font-face{font-family:cmmi10;src:url(data:application/x-font-woff2;base64,d09GMgABAAAAAAJsAAoAAAAABDwAAAIgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAqCEIFrCwYAATYCJAMIBCAFgj4HIBteAwAeB3asMQiD+PEgXGhlEUE2bLN75SmlCQ/GIGSrQnVFsAiLUUiN8Og72N9779sjEQEnNst1C40oT3b/39vzPQ98A/rhhjjxWV8v0GadeGBppNG8zxeAApR0m2KdEcvG9AuirxtK3iDlgCV/UCf/HGWzRg4NjoMI6/DA9PicEQk4H/MKDBSh2xwDJArW+ps1GEdAVQU+xojG47tCkzQyPAOeAA+/J84ifSXrIXdk5y6gjsytgVzNesGy7+ypcLXisG3hqXjTmEJRT26/bA1Xbu5K4u4OsSjbe+1bzePV8vJ0mlTWAvputJquDPoOxOrnZweRvCGFXp78tipn2E9XumhblyFSl+9lKOxOpt5aETjnXY+lVujzhBah0XG2bDmTeJ9EKVNelvl6klpSWhONFk7hCTtDh6eBqIdIe5AVjnPRycixQidZiVkW+E+u/8kvmATJUjlrPoQHLXagkzMABIJflsfWDd30jVAq+Gs4NYg/AsZ/viG7wJQEQTGQbyBOLUUBAduZbwB5CuIQpDMVRQzBjE8KLFJ0Vbe4F82sddF1R9szdshDizotHLA0Uc25Fs2GGNHN+QozThQfaf9h515ofHy0luYdudVS1ySjJ89UWEZ0akZkvKSOujY+BhuJ4iVJlyZcCkluEoX5UoJQ8eJF06LJn7dTRUuUQHKqTlMFhywhOwuuiLBkiGySwmSIlq9liBQPOpn2qtDgBAAAAAA=) format('woff2');} + text.f0 {font-family:cmmi10;font-size:9.96264px} + </style><g id=\"page1\"><text class=\"f0\" x=\"-72.000004\" y=\"-67.710548\" fill=\"currentColor\">x</text></g></svg>", "utf8", ] 4th writeFile call: Array [ - 4, "tmp/tests/9664d227-d3cc-49e7-b404-1d77220de76f/cache/cache.json", - StringMatching /{"int":{"tex\/ref":{"sourceHash":"[\w-]{43}","hash":"([\w-]{43})"}},"svg":{"tex\/ref":{"sourceHash":"\1"}}}/, + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"Mys9UkpnKsEO_q3Dor2OGZfeNqI12pmzqTjHGlqT9CU\",\"hash\":\"DHlOkGRr_IWR7y9uNxIvuSiSrsUOcvcvskO-DrWujZg\"}},\"svg\":{\"tex/ref\":{\"sourceHash\":\"DHlOkGRr_IWR7y9uNxIvuSiSrsUOcvcvskO-DrWujZg\"}}}", "utf8", ] Number of calls: 4 ❯ tests/unit/utils/TexComponent.test.ts:1031:39
4,
`tmp/tests/${id}/cache/cache.json`,
expect.stringMatching(
new RegExp(
Expand Down

0 comments on commit 5df3f64

Please sign in to comment.