Giter VIP home page Giter VIP logo

Comments (5)

AlCalzone avatar AlCalzone commented on September 4, 2024 1

I'll check it out but I'm on vacation the next two weeks.

from testing.

xDGeForcexD avatar xDGeForcexD commented on September 4, 2024 1

I deleted the test.

I have now created the test under this repo and branch:
https://github.com/xDGeForcexD/ioBroker.ah-mixer/tree/testing-issue

The "main.test.ts" will be not executed so I don't can reproduce the problem. Maybe you find why the test is not loaded.

from testing.

AlCalzone avatar AlCalzone commented on September 4, 2024 1

Okay, so the problem is that mocha 8 requires a rc file instead of an opts file and this causes your tests to fail. What you need to do:

  1. delete test/mocha.custom.opts
  2. add a .mocharc.json file in the project root:
    {
    	"require": ["./test/mocha.setup.js", "ts-node/register", "source-map-support/register"],
    	"watch-files": ["src/**/*.test.ts"]
    }
  3. change the test:ts script to mocha src/**/*.test.ts

grafik

from testing.

AlCalzone avatar AlCalzone commented on September 4, 2024

Do you have a link to a repo of your adapter where I can check this out myself?

from testing.

AlCalzone avatar AlCalzone commented on September 4, 2024

Closing this, since it is not a bug in this library. Feel free to reopen if it doesn't work for you.

from testing.

Related Issues (20)

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.