forked from mermaid-js/mermaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix initThrowsErrors test with esbuild
Jest mocks don't work well with ESM (especially since esbuild is stricter with ESM code than jest is). We can convert this test to instead import the mermaid modules using `require('./mermaid')`, so that jest can easily mock it.
- Loading branch information
1 parent
a0fa8df
commit 6aeef3d
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters