Fix tests with sync WASM loading
This commit is contained in:
parent
23ae960372
commit
693705ae62
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
module.exports = {
|
||||
preset: "ts-jest/presets/js-with-babel-esm"
|
||||
preset: 'ts-jest/presets/js-with-babel-esm',
|
||||
moduleNameMapper: {
|
||||
'^reconcile/reconcile_bg\\.wasm$': `<rootDir>/__mocks__/wasm.js`,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue