javascriptintellij-ideajasminejs-test-driver

Test config file - newbee issues


I am trying to setup Jasmine in IntelliJ IDEA with the jasmine-jstd-adapter plugin for JSTestDriver.

Now I have no idea how to structure my config file. Currently it looks like this, because the Jetbrains help did tell me so:

load:
  - "lib/jasmine/jasmine.js"
  - "lib/jasmine-jstd-adapter/JasmineAdapter.js"
  - "*.js"

test:
  - "*.spec .js"

But it fails to open the jasmine scripts, when executing the JSTD run configuration:

Cannot read C:\Users\danie\Documents\ExercismProjects\javascript\simple-cipher\lib\jasmine\jasmine.js derived from lib/jasmine/jasmine.js
Cannot read C:\Users\danie\Documents\ExercismProjects\javascript\simple-cipher\lib\jasmine-jstd-adapter\JasmineAdapter.js derived from lib/jasmine-jstd-adapter/JasmineAdapter.js

My questions:

  1. Don't I have to add the jasmine-jstd-adapter.js as well somewhere? Where do I find it?
  2. How do I load the library files? They are obviously not in \lib\, because there is no lib folder. So how do I refer to the "External Libraries"?
  3. What else am I missing?

Solution

  • 1. you can use Add Jasmine JsTestDriver adapter inspection to download the adapter:

    enter image description here

    Note that WebStorm will download the library for you if you follow the steps described above