Skip to content

Commit bba1c7a

Browse files
author
Loïc Mangeonjean
committed
fix: workaround jest bug with wasm on v29.3.0
1 parent 53e9621 commit bba1c7a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

jest/onig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = "vscode-oniguruma/release/onig.wasm"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
},
115115
"moduleNameMapper": {
116116
"^monaco-editor$": "monaco-editor/esm/vs/editor/editor.api",
117-
"^monaco-editor-core$": "monaco-editor/esm/vs/editor/editor.api"
117+
"^monaco-editor-core$": "monaco-editor/esm/vs/editor/editor.api",
118+
"^vscode-oniguruma/release/onig.wasm$": "<rootDir>/jest/onig.js"
118119
}
119120
},
120121
"volta": {

0 commit comments

Comments
 (0)