tree: 1db7a3932ce6587e15cacb3cf227f6dab6229ca5 [path history] [tgz]
  1. _commonFiles/
  2. api/
  3. box/
  4. bridges/
  5. dce/
  6. js-name-resolution/
  7. js-optimizer/
  8. lineNumbers/
  9. multiModuleOrder/
  10. outputPrefixPostfix/
  11. sourcemap/
  12. typescript-export/
  13. wasmBox/
  14. webDemoCanvasExamples/
  15. webDemoExamples1/
  16. webDemoExamples2/
  17. .gitignore
  18. moduleEmulation.js
  19. nashorn-polyfills.js
  20. package.json
  21. README.md
  22. runIrTestInNode.js
  23. test.html
  24. test.js
  25. testIr.html
js/js.translator/testData/README.md

To run tests in node.js your need the following prerequisites installed:

  • node.js itself (installation is platform-dependent);
  • mocha (npm install -g mocha).

Run nmp install from this directory to download all additional dependencies for tests.

First, you need to run box tests via JUnit. JUnit tests additionally generate mocha runners (i.e. .node.js files).

Second, run mocha from this directory.

You can declare KOTLIN_JS_LOCATION environment variable to customize location of kotlin.js library, ../../../dist/js/kotlin.js used by default.