GithubHelp home page GithubHelp logo

Comments (9)

ThomasRogg avatar ThomasRogg commented on August 23, 2024 1

Trying to get an example going with mocha is high on our list. I guess this will happen this month. I will report here.

from lowjs.

ThomasRogg avatar ThomasRogg commented on August 23, 2024

Sorry for the late answer!

Well, when low.js is done it should just work like Node. If it is not, something is simply not implemented yet.

Another thing which could be in the way is that low.js is only ES5 (ES6 seamlessly with automatic transpilation when syncing with ESP32), while some modules in npm are ES6. For use cases like this (tests on PC), we are planning on adding optional automatic transpilation with babel to the low binary.

I would say, tell us what you already tried, but I guess you have an idea now, because you opened issue 24. Closing because of this.

from lowjs.

lll000111 avatar lll000111 commented on August 23, 2024

(Please reopen)

Possibly relevant: mochajs/mocha#956

from lowjs.

lll000111 avatar lll000111 commented on August 23, 2024

I added my observations in mochajs/mocha#956 (comment) - they already support running mocha from JS in the browser, strange that the same steps don't work from node.js. I'm too lazy to now debug the mocha.js file though.

from lowjs.

lll000111 avatar lll000111 commented on August 23, 2024

The current stopper is npm dependency "supports-color" of mocha — because it has a let statement in line 7 of its index.js file.

Duktape and therefore low.js already accepts const (I think Duktape treats it as var), let should be possible on the same (preliminary, incomplete) level.

Reference: svaarala/duktape#2000

from lowjs.

ThomasRogg avatar ThomasRogg commented on August 23, 2024

No, let is not yet supported in DukTape.

But, as I wrote: "For use cases like this (tests on PC), we are planning on adding optional automatic transpilation with babel to the low binary."

Hopefully this will be done this month.

from lowjs.

ThomasRogg avatar ThomasRogg commented on August 23, 2024

Just FYI: The current pipeline here is as follows:

  • Get lowsync API and UI in IDE for npm modules working (works in the lab already, really is fun!)
  • Small revamp of lowsync (better monitor and so on)
  • WebSockets Server

After that we could look into mocha.

from lowjs.

lll000111 avatar lll000111 commented on August 23, 2024

You can make mocha a lower priority before any other blockers, I can code-write my way around that.

from lowjs.

ThomasRogg avatar ThomasRogg commented on August 23, 2024

Will not be done in foreseable future.

from lowjs.

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.