Harmony Test with Jasmine

What would be the best way to test Harmony features with Jasmine? Jasmine does not currently run my tests, as he is puzzled by the findings and symbols *.

+4
source share
2 answers

You need to manually start jasmine as follows:

node --harmony ./node_modules/jasmine-node/bin/jasmine-node ./spec
+1
source

You must run your tests in an environment that supports Harmony features. Check out the ECMAScript 6 Compatibility Chart to find out what features are supported in browsers.

, , . , , , .

0

Source: https://habr.com/ru/post/1544766/


All Articles