At the moment I am using modules to connect the source and spec files in jasmine node like so:
source.js
"use strict"
let someFunction = function() {
some code here
};
module.exports = someFunction;
and I require it in the spec file like so:
let someFunction = require('pathToFile/source.js');
everything works fine but I really do not want to use modules just to connect source and spec files for jasmine.
The documentation says that it is possible to "customize spec/support/jasmine.json to enumerate the source files and spec files you would like the Jasmine runner to include."
But I did not found an example of how to do it so I have added the source file to helpers in jasmine.json like so:
"helpers": [
"../path/source.js"
],
but it did not work.
Any advice would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jasmine-js/2f0bdb0c-fb3d-4b7f-a138-011ec140e329%40googlegroups.com.