Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toBeValidDotAndMatchSnapshot test failed on Windows #249

Open
kamiazya opened this issue Jan 10, 2021 · 1 comment
Open

toBeValidDotAndMatchSnapshot test failed on Windows #249

kamiazya opened this issue Jan 10, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@kamiazya
Copy link
Member

Describe the bug

Running a test using .toBeValidDotAndMatchSnapshot on Windows causes an error on Graphviz.

● function digraph › root create function › no parameters

    Format: "plain" not recognized. Use one of:

      94 |       expect(g.size).toBe(size);
      95 |       expect(g.strict).toBe(strict);
    > 96 |       expect(toDot(g)).toBeValidDotAndMatchSnapshot();
         |                        ^
      97 |     });
      98 |   });
      99 | 

Expected behavior

The test can be run successfully on Windows.

Additional context

Graphviz for Windows was updated on 21 Nov 2020.

Available at: https://chocolatey.org/packages/Graphviz

@kamiazya
Copy link
Member Author

When Graphviz of chocolatey was upgraded to version 2.44, there was a bug that the output format could not be specified.
This problem seemed to be avoided only by specifying the version of Graphviz to be installed to the 2.38 version.

kamiazya added a commit that referenced this issue Jan 10, 2021
To temporarily avoid the problem that Graphviz for Windows is experiencing with the 2.44 version. #249
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant