This is a simple project that explains how to run Jasmine BDD specs over modules loaded with require.js, in three different environments: JsTestDriver, Node.js, Web browser
35
stars
3
forks
source link
Is it possible to expand the jasmine-reqjs-jstd project to include a more complex solution? #2
Hello!
Like many others, I am currently trying to incorportate automatic testing of javascript in my projects. I like your example, but I wish the requirejs part was a bit more complex. Requirejs is used to keep track of dependencies, meaning more than one js file. In the project I would like to test, I am using knockout. To test the viewmodel I need to include knockout among other things. I just got the requirejs part to work. My main.js file looks as follows:
I was kind of hoping I could have written a similar require section for the test. If I have to include everything manually again I feel we kind of lose the point of using something like requirejs.
Hello! Like many others, I am currently trying to incorportate automatic testing of javascript in my projects. I like your example, but I wish the requirejs part was a bit more complex. Requirejs is used to keep track of dependencies, meaning more than one js file. In the project I would like to test, I am using knockout. To test the viewmodel I need to include knockout among other things. I just got the requirejs part to work. My main.js file looks as follows:
I was kind of hoping I could have written a similar require section for the test. If I have to include everything manually again I feel we kind of lose the point of using something like requirejs.
Kind regards Patrik Filipsson Sofware developer FindOut Technologies