Git Product home page Git Product logo

inspection-skyway-js-sdk's Introduction

inspection-skyway-js-sdk's People

Contributors

ta14-u avatar

Watchers

 avatar

inspection-skyway-js-sdk's Issues

skyway-sdk を import しているモジュールでのテストがエラーになる

概要

以下のエラーを解決したい

前提

  • 対象ディレクトリ
    • examples/large-room/
  • #1 での結果を受け RTCPeerConnection のモックを追加した

npm run test を実行した結果

  • example-const.ts のテスト
    • skyway-sdk を読み込んでいない
    • テストは PASS する
  • const.ts のテスト
    • skyway-sdk を読み込んでいる
    • TypeError: (0 , __1.createError) is not a functionエラーで失敗する

出力

▶ npm run test

> [email protected] 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.