TypeError: (0 , __1.createError) is not a functionエラーで失敗する
出力
▶ npm run test
> large-room@0.0.0 test
> jest
PASS src/example-const.test.ts
FAIL src/const.test.ts
● Test suite failed to run
TypeError: (0 , __1.createError) is not a function
28 | constructor() {
29 | if (!navigator?.mediaDevices) {
> 30 | throw createError({
| ^
31 | operationName: 'StreamFactory.constructor',
32 | info: errors.mediaDevicesNotFound,
33 | path: log.prefix,
at new StreamFactory (../../packages/core/src/media/factory.ts:30:24)
at Object.<anonymous> (../../packages/core/src/media/factory.ts:265:36)
at Object.<anonymous> (../../packages/core/src/index.ts:8:1)
at Object.<anonymous> (../../packages/room/src/errors.ts:1:1)
at Object.<anonymous> (../../packages/room/src/index.ts:1:1)
at Object.<anonymous> (src/const.ts:1:1)
at Object.<anonymous> (src/const.test.ts:1:1)
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 4.587 s
Ran all test suites.
概要
以下のエラーを解決したい
関連 Issue