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 f5c66a3 commit 2f209c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/unit/utils/TexComponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,12 @@ describe.concurrent('compile()', () => {
expect.stringContaining('\\documentclass'),
'utf8',
);
expect(writeFile).toHaveBeenNthCalledWith(
3,
expect(writeFile).toHaveBeenCalledWith(

Check failure on line 1025 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: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/345db916-406d-4516-8a26-1f7946ae2402/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/345db916-406d-4516-8a26-1f7946ae2402/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/345db916-406d-4516-8a26-1f7946ae2402/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/345db916-406d-4516-8a26-1f7946ae2402/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 [ - "tmp/tests/345db916-406d-4516-8a26-1f7946ae2402/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/345db916-406d-4516-8a26-1f7946ae2402/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

Check failure on line 1025 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: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/e16b4661-6453-46dd-a4e5-03ffa8fd66f5/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/e16b4661-6453-46dd-a4e5-03ffa8fd66f5/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/e16b4661-6453-46dd-a4e5-03ffa8fd66f5/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/e16b4661-6453-46dd-a4e5-03ffa8fd66f5/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 [ - "tmp/tests/e16b4661-6453-46dd-a4e5-03ffa8fd66f5/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/e16b4661-6453-46dd-a4e5-03ffa8fd66f5/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

Check failure on line 1025 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: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/bd162517-0ad9-44cd-97b6-f91d62d48771/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/bd162517-0ad9-44cd-97b6-f91d62d48771/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/bd162517-0ad9-44cd-97b6-f91d62d48771/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/bd162517-0ad9-44cd-97b6-f91d62d48771/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 [ - "tmp/tests/bd162517-0ad9-44cd-97b6-f91d62d48771/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/bd162517-0ad9-44cd-97b6-f91d62d48771/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Q3b4sGnhtwMIv6rLdoDdkwFk5iI1t5FXsS-uerAGv9Y\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

Check failure on line 1025 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: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/675eeabc-5136-40dd-953c-ffa154c41986/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/675eeabc-5136-40dd-953c-ffa154c41986/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/675eeabc-5136-40dd-953c-ffa154c41986/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/675eeabc-5136-40dd-953c-ffa154c41986/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 [ - "tmp/tests/675eeabc-5136-40dd-953c-ffa154c41986/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/675eeabc-5136-40dd-953c-ffa154c41986/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"Ae2TMtTFLqJk__0qgQy02T4r7zzE8dG6DNyQ02xhjdQ\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

Check failure on line 1025 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: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/f549c1e7-afbf-4bb5-b4b4-0fa1f4a84584/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/f549c1e7-afbf-4bb5-b4b4-0fa1f4a84584/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/f549c1e7-afbf-4bb5-b4b4-0fa1f4a84584/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/f549c1e7-afbf-4bb5-b4b4-0fa1f4a84584/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 [ - "tmp/tests/f549c1e7-afbf-4bb5-b4b4-0fa1f4a84584/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/f549c1e7-afbf-4bb5-b4b4-0fa1f4a84584/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"UUmKNqUuCjsNelLGQHKr2Unob4tmtdCJUO2U_WgJ2qk\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

Check failure on line 1025 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: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/51e31849-2aff-492e-8803-bada89fbd46f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/51e31849-2aff-492e-8803-bada89fbd46f/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/51e31849-2aff-492e-8803-bada89fbd46f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/51e31849-2aff-492e-8803-bada89fbd46f/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 [ - "tmp/tests/51e31849-2aff-492e-8803-bada89fbd46f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/51e31849-2aff-492e-8803-bada89fbd46f/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"lNFg0qfYPJphkwgHmanvb4rMO9xZnE6HfVq8MzwT3-c\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

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

View workflow job for this annotation

GitHub Actions / test

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

AssertionError: expected "writeFile" to be called with arguments: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/c82945b2-88e4-4c66-8f2b-82eacff7d13f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/c82945b2-88e4-4c66-8f2b-82eacff7d13f/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/c82945b2-88e4-4c66-8f2b-82eacff7d13f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/c82945b2-88e4-4c66-8f2b-82eacff7d13f/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 [ - "tmp/tests/c82945b2-88e4-4c66-8f2b-82eacff7d13f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/c82945b2-88e4-4c66-8f2b-82eacff7d13f/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"gn5Hzr24XwPLtki01XsKujY6pUNWpO9Qan4C0qlCVpc\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

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

View workflow job for this annotation

GitHub Actions / test

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

AssertionError: expected "writeFile" to be called with arguments: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/3ec8644c-1706-49bf-8dee-17a51dfd9851/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/3ec8644c-1706-49bf-8dee-17a51dfd9851/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/3ec8644c-1706-49bf-8dee-17a51dfd9851/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/3ec8644c-1706-49bf-8dee-17a51dfd9851/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 [ - "tmp/tests/3ec8644c-1706-49bf-8dee-17a51dfd9851/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/3ec8644c-1706-49bf-8dee-17a51dfd9851/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"gn5Hzr24XwPLtki01XsKujY6pUNWpO9Qan4C0qlCVpc\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39

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

View workflow job for this annotation

GitHub Actions / test

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

AssertionError: expected "writeFile" to be called with arguments: [ …(3) ] Received: 1st writeFile call: Array [ - "tmp/tests/0153e99c-031f-4627-a455-333cb1f6433f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/0153e99c-031f-4627-a455-333cb1f6433f/cache/cache.json", + "{\"int\":{},\"svg\":{}}", "utf8", ] 2nd writeFile call: Array [ - "tmp/tests/0153e99c-031f-4627-a455-333cb1f6433f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/0153e99c-031f-4627-a455-333cb1f6433f/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 [ - "tmp/tests/0153e99c-031f-4627-a455-333cb1f6433f/output/tex/ref.svg", - StringContaining "<svg", + "tmp/tests/0153e99c-031f-4627-a455-333cb1f6433f/cache/cache.json", + "{\"int\":{\"tex/ref\":{\"sourceHash\":\"2UtUvvWuwXmVLmpDXZpm4dGyj3H13vzsYg-2nEApcOE\",\"hash\":\"gn5Hzr24XwPLtki01XsKujY6pUNWpO9Qan4C0qlCVpc\"}},\"svg\":{}}", "utf8", ] Number of calls: 3 ❯ tests/unit/utils/TexComponent.test.ts:1025:39
`tmp/tests/${id}/output/tex/${ref}.svg`,
expect.stringContaining('<svg'),
'utf8',
);
expect(writeFile).toHaveBeenNthCalledWith(
4,
expect(writeFile).toHaveBeenCalledWith(
`tmp/tests/${id}/cache/cache.json`,
expect.stringMatching(
new RegExp(
Expand Down

0 comments on commit 2f209c5

Please sign in to comment.