-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: How to run mocha tests using low binary instead of node #18
Comments
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. |
(Please reopen) Possibly relevant: mochajs/mocha#956 |
Trying to get an example going with mocha is high on our list. I guess this will happen this month. I will report here. |
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 |
The current stopper is npm dependency "supports-color" of mocha — because it has a Duktape and therefore low.js already accepts Reference: svaarala/duktape#2000 |
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. |
Just FYI: The current pipeline here is as follows:
After that we could look into mocha. |
You can make mocha a lower priority before any other blockers, I can code-write my way around that. |
Will not be done in foreseable future. |
Before I run code on the device I would like to use the platform binary or low.js to run the transpiled code on the development system. Specifically and as a use case example, I want to run the existing mocha tests (used for node.js and browser thus far).
This does not seem to be trivial, I can't find a way to run mocha tests on low. I would appreciate this added to documentation. Automated tests are a must, how would one use one of the most widely used tets runners with low.js?
Related: svaarala/duktape#1549
The text was updated successfully, but these errors were encountered: