Questions tagged [karma-requirejs]
9 questions
4
votes
1 answer
karma require js relative path not working
I'm trying to make test environment for my javascript project but I got problem because of There is no timestamp for Issue and
WARN [web-server]: 404: /base/app/templates/setting.html, my templates located in different folder with base folder. here…

wendy0402
- 495
- 2
- 5
- 16
2
votes
1 answer
Karma Test Runner RequireJS 404 error, not serving up content
Getting a 404 error for my app.js file even though it exists at the URL it says it doesn't (served with karma). Any idea what this is and how to solve? >.> going insane.
DEBUG [web-server]: serving:…

raptoria7
- 789
- 7
- 12
1
vote
2 answers
Can't choose to use Require.js when running karma init
I'm trying to create a configuration file to run karma tests including Jasmine and requirejs, so I run karma init xyz.conf.js, and the script asks me:
What testing framework to use? I have only available jasmine, as expected
Do you want to use…

JotaBe
- 38,030
- 8
- 98
- 117
1
vote
1 answer
Karma/Jasmine - Test Files not loading in Base, Module Not Defined
I'm having a hell of a time with Karma/Jasmine. I'm just trying to run the example specs from Jasmine's site.
When I run jasmine on command line, the tests run fine. However, if I try to run them using Karma test runner, I have a multitude of…

MickJuice
- 539
- 2
- 10
- 25
0
votes
0 answers
karma test case - setCartCookie
setCartCookie(cookieVal: any, expiresInDays: any, countryId: any) {
$.cookie('cart-' + this.getStoreId(countryId), cookieVal, {
path: "/",
expires: expiresInDays ? expiresInDays : 365 * 10 //Ifm expiresInDays is not…
0
votes
1 answer
Mismatched anonymous define() module in unit testing with Karma + Jasmine + Durandal + KnockoutJS + RequireJS
There is a problem when implementing Jasmine unit tests through Karma for Asp.Net MVC project with Durandal wrapper over KnockoutJS + RequireJS. Here is the sample code:
karma.conf.js
config.set({
basePath: '',
files: [ …

shrzd
- 102
- 2
- 3
- 6
0
votes
1 answer
Karma requirejs lodash
I am using karma, jasmine, requirejs and lodash. When I started project I got error like this:
PhantomJS 1.9.8 (Windows 8 0.0.0) ERROR
Error: Module name "../lodash.js" has not been loaded yet…

svobol13
- 1,842
- 3
- 25
- 40
0
votes
1 answer
The client arguments (clientArgs) given to "karma run" have no effect when I'm using RequireJS
I'm trying to pass the grep argument so that the karma-mocha plugin will pass it to Mocha and run only the tests that match grep. The command line is like this:
./node_modules/.bin/karma run -- --grep='one'
However, Karma actually goes over all…

Louis
- 146,715
- 28
- 274
- 320
0
votes
1 answer
Karma test run throwing error on requirejs
I have the below configuration in the karma config file.
frameworks: [
'jasmine',
'requirejs'
],
files: [
//App Bower components
{pattern: 'public/bower_components/**/*', included: false}
.....
…

Priyabrat Nanda
- 1,095
- 3
- 18
- 34