c1fe8ec99a
this PR puts sync stuff in the bemo worker, and sets up a temporary dev-only page in dotcom for testing bemo stuff ### Change type - [ ] `bugfix` - [ ] `improvement` - [x] `feature` - [ ] `api` - [ ] `other` ### Test plan 1. Create a shape... 2. - [ ] Unit tests - [ ] End to end tests ### Release notes - Fixed a bug with...
16 lines
407 B
JavaScript
16 lines
407 B
JavaScript
require('fake-indexeddb/auto')
|
|
global.ResizeObserver = require('resize-observer-polyfill')
|
|
global.crypto ??= new (require('@peculiar/webcrypto').Crypto)()
|
|
global.FontFace = class FontFace {
|
|
load() {
|
|
return Promise.resolve()
|
|
}
|
|
}
|
|
document.fonts = {
|
|
add: () => {},
|
|
delete: () => {},
|
|
forEach: () => {},
|
|
}
|
|
|
|
global.TextEncoder = require('util').TextEncoder
|
|
global.TextDecoder = require('util').TextDecoder
|