Comments (9)
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.
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.
(Please reopen)
Possibly relevant: mochajs/mocha#956
from lowjs.
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.
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.
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.
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.
You can make mocha a lower priority before any other blockers, I can code-write my way around that.
from lowjs.
Will not be done in foreseable future.
from lowjs.
Related Issues (20)
- Can not use Socket from net module. HOT 2
- www.lowjs.org is down HOT 1
- make error on build HOT 2
- MQTT pub issue HOT 6
- Unexpected error: Cannot find module 'invariant' HOT 1
- SyntaxError: unterminated statement (line 7) HOT 2
- M5Stack button pin not available HOT 2
- ESP32-WROVER unable to connect to wifi network on pro firmware
- HowTo read adc input voltage with lowjs HOT 1
- How to build lowjs from sources... HOT 1
- spi uses the device to disconnect
- Cannot use spi to receive data
- low.js dead ? HOT 1
- An unhandled exception occurred: Cannot find module '../lib/statuses'
- Tổ hợp Sun Riverpolis Đà Nẵng
- java job
- Typo: _trasformNeeded
- Is class a supported construct? I am getting following error HOT 1
- Website not working HOT 2
- ESP32 Code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lowjs.