Karma can not recognize 'require' statement in JSFileSpec.js file. Running karma.conf.js:  (function() {     describe("DummyEmitter creation", function(){         return it("creation", function(){             var DummyEmitte...
I set up grunt to run node.js jasmine tests. For some reason, with this config, the results always show double the tests.  Here is my config:  I'm using jasmine-node which plugs into grunt.  /spec/some-spec.js:  var myModule = require('../src...
After much hacking, I've managed to get a simple Jasmine test running via Node.  However, there is some weird stuff I do not understand... The jasmine files export functions that appear to need a reference to themselves passed back in to work (th...
I've been working on a command line app in node that does some file system reads and express app stuff, and all my tests are passing locally, however Travis seems to be having an issue when building (timing out, which is a Jasmine Node thing). He...
I'm new to JavaScript, Node.js and jasmine. I'm trying to run a test from the book "The Node Craftsman Book", FilesizeWatcher. I've created the package.json file and run "npm install", thus installing jasmine-node locally...
I learned that this way is the best way to loop through the it() in a describe(), but it failed on me with "spec not found", and seems stop right before the for loop function, I wonder where did I do wrong?  Thanks!  describe('this is my...
I am writing protractor test suites, and need to test something that is uses pages generated from another suite. I can only figure out one way to write the test, but it doesn't seem like a good way to write it:   var someStuffToSave = [];  descri...
I'm writing a spec using Jasmine Node and I'd like to compare the content of files on disk with the content of files in memory to check that they are equal.   Most of the files are text, but one is an image file (PNG).   How can this can be d...
I have NodeJS project with jasmine specs . I want to run pre-requisites before running all specs in the suite for creating pre-requisite test data for the complete suite.   For individual spec , it can be done using beforeAll method, but I want to ru...
I'm using jasmine-node to test my server. I want to fake/bypass some validation related code in my user class. So I would set up a spy like this -  var user = {   email: '[email protected]',   password: 'password' }  spyOn(User, ...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.