After running the Gradle test task there is a erro...
# javascript
n
After running the Gradle test task there is a error with the kotlin module not being found (using Jest for Kotlin JS testing):
Copy code
> Task :js:runJest FAILED
FAIL build/test/js_test.js
  ● Test suite failed to run

    Cannot find module 'kotlin' from 'js_test.js'

      3 |     define(['exports', 'kotlin', 'kotlin-test'], factory);
      4 |   else if (typeof exports === 'object')
    > 5 |     factory(module.exports, require('kotlin'), require('kotlin-test'));
        |                             ^
      6 |   else {
      7 |     if (typeof kotlin === 'undefined') {
      8 |       throw new Error("Error loading module 'js_test'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'js_test'.");

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
      at require (build/test/js_test.js:5:29)
      at Object.<anonymous> (build/test/js_test.js:1:2)

Test Suites: 1 failed, 1 total
What is the way to resolve JS dependencies?
Forgot that by convention Node discovers modules that are in a node_modules directory. Kotlin JS testing now works as expected simple smile. Now I can move to automated UI testing.