All Questions
18
questions
68
votes
5
answers
39k
views
Getting requirejs to work with Jasmine
I first want to say that I am new to RequireJS and even newer to Jasmine.
I am having some issues with the SpecRunner and require JS. I have been following the tutorials of Uzi Kilon and Ben Nadel (...
29
votes
2
answers
10k
views
Does Jasmine 2.0 really not work with require.js?
I'm setting up my SpecRunner.html/.js, RequireConfig.js, my paths and my shims just like I have with earlier release candidates of Jasmine + RequireJs, but now my test methods show Jasmine undefined. ...
5
votes
1
answer
705
views
State of Jasmine Unit Test support of Resharper 2017: Debug mode and AMD modules supported?
I currently use Chutzpah to run and debug Jasmine Unit tests that include AMD/require.js modules. I would like switch to the test runner of Resharper 2017. However, Resharper does not seem to fully ...
4
votes
3
answers
2k
views
Jasmine and Requirejs in Resharper 7
I'm trying to run some JavaScript code using jasmine and Resharper 7 within visual studio 2012. I follow the AMD pattern with the aid of requirejs. However, i haven't managed to make my test run in ...
20
votes
1
answer
12k
views
KarmaJS, Jasmine, RequireJS, etc: How to Use Require for Testing Modules
Running Karma + Jasmine Tests with RequireJS -- Getting off the ground
Help! . . . _ _ _ . . . SOS!
Currently, I have an exercise project up for getting comfortable with KarmaJS -- and Unit Testing, ...
11
votes
2
answers
4k
views
BlanketJS + Jasmine 2.0 not working
I have been testing with Jasmine 2.0.0 and it works without any problem.
But there's a problem when I append BlanketJS to my code.
I used a specRunner(https://github.com/alex-seville/blanket/blob/...
11
votes
3
answers
3k
views
Testing javascript with Chutzpah and requirejs
I just wonder if there is a simple tutorial showing how to test javascript in visual studio with Chutzpah, require.js and jasmine.
Basically, i want to run the tests without using an .html file so ...
5
votes
3
answers
8k
views
test not running on karma/jasmine/require.js 'There is no timestamp for *lib*!' error
I change the code, extend some functionality and add new unittest for that. Now, when I run my unit tests with karma (test framework - jasmine), it throw me an error
'There is no timestamp for /libs/...
5
votes
2
answers
3k
views
Chutzpah and Jasmine 2.0 and RequrieJs
I'm having some bother getting Chutzpah to work with requireJs/jasmine 2.0. This method worked for version 1.3 but now for jasmine version 2.0 chutzpah has stopped picking up the tests. I upgraded ...
4
votes
1
answer
2k
views
How to stub Backbone View instantiated within another Views render method when Using RequireJS (and Jasmine / Sinon)
I am attempting to write unit tests using Jasmine and Sion but I am struggling to find the equivalent of the following when using RequireJs to load modules:
sinon.stub(window, "MyItemView");
When ...
4
votes
1
answer
961
views
Testing requireJS methods async with Jasmine
I am trying to test a function that requires a module using jasmine and requirejs.
Here is a dummy code:
define("testModule", function() {
return 123;
});
var test = function() {
require(['...
4
votes
2
answers
1k
views
RequireJS not loading modules properly using karma and typescript
I am trying to set up unit testing for a SPA using karma/jasmine
First of all, the following test runs just fine in karma:
/// <reference path="../../definitions/jasmine/jasmine.d.ts" />
/// &...
4
votes
0
answers
2k
views
How to set up JASMINE using MAVEN-PLUGIN?
I have a folder structure like
-root
-pom.xml
-service
-web
-pom.xml
-src
-main
-test
-java
-javascript
-lib
...
1
vote
1
answer
1k
views
How to use Jasmine to test if an instance is created?
Hi Am new to using Jasmine. The issue is as follows: I have a number of modules, managed through RequireJS. Now a module A creates an instance of another module B in it. Is it possible to use Jasmine ...
1
vote
1
answer
2k
views
Can Blanket.js work with Jasmine tests if the tests themselves are loaded with RequireJS?
We've been using Jasmine and RequireJS successfully together for unit testing, and are now looking to add code coverage, and I've been investigating Blanket.js for that purpose. I know that it ...