Questions tagged [wallaby.js]

a continuous test runner for JavaScript/TypeScript/CoffeeScript that plugs into multiple code editors

Wallaby.js is a continuous JavaScript test runner that uses intelligence built from it's code coverage to execute tests as you type and report them directly in the text editor. http://wallabyjs.com/

49 questions
11
votes
0 answers

Recommended Wallaby.js alternatives?

I'm trying to find a Wallaby.js alternative. I'd like to see test results "on the fly" (in VScode or Webstorm), Preferably, a free or at least a cheaper alternative. Searched google and could not find any. Any recommendations ?
Chen Peleg
  • 953
  • 10
  • 16
7
votes
1 answer

Wallaby and prototype error

The thing is that prototype is not defined , although in the node console writing http.IncomingMessage.prototype does give an object as an output. Any Ideas ? var req = Object.create(http.IncomingMessage.prototype) Uncaught TypeError: Cannot read…
Jerzy Gruszka
  • 1,629
  • 4
  • 15
  • 20
7
votes
2 answers

Unexpected reserved word error while testing using wallaby

In my test file where I have written test cases, I have imported a typescript file like below: import {rootReducer} from "../src/reducers/rootReducer"; In rootReducer.ts I have imported another typescript file like below: import taskReducer from…
Dixy Xavier
  • 667
  • 2
  • 6
  • 20
6
votes
1 answer

ReferenceError: Can't find variable: Map at src/app/home/home.component.spec.ts:4 Angular 2

I seem to be setting up wallable wrong. error: ReferenceError: Can't find variable: Map at src/app/home/home.component.spec.ts:4 ReferenceError: Can't find variable: Map at http://localhost:63247/__modules/27.js?1483285680907:80 I set up my js…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
5
votes
1 answer

Avoiding EADDRINUSE when using wallaby.js with an express project

I've had great luck using wallaby.js on client side JavaScript and I'd like to try to get it to work on my server side JavaScript. However, wallaby.js likes to spin up a lot of parallel web servers which causes problems for the tests because it…
Pridkett
  • 4,883
  • 4
  • 30
  • 47
4
votes
0 answers

Angular 6 app with multiple projects. How to run all spec files? ng test runs only first project

I'm working on an app which uses multiple projects. As mentioned, only the first project's spec.ts files are executed. It will be much appreciated if I can see a monorepo which has multiple projects, capable of executing all specs, using: angular…
D15
  • 225
  • 1
  • 2
  • 9
3
votes
1 answer

How to test electron ipc events using jest?

I'm working on some tests for an electron app I'm building. I'm running into the error below. I'm new to jest, so I imagine it's due to an incorrect setup. Any idea where I'm going wrong? Error: Cannot find module 'ipcMain' from…
Justin Young
  • 2,393
  • 3
  • 36
  • 62
3
votes
0 answers

Quokka.js(Wallaby.js) is unable to find jquery: $ is not defined

I have a small js project which runs without an issue. I wanted to try out Quokka.js(Wallaby.js) and see how it goes. When I have enabled Quokka in vscode, it showed an error for $ is not defined for $.ajaxSetup({ async: true, type: "GET" }); Is…
Alex D
  • 703
  • 2
  • 7
  • 23
3
votes
0 answers

Wallaby.js with angular 2 webpack app

I try to setup Wallaby.js for the Angular 2 app with Webpack. I am almost there, but unfortunately, I get. I guess it has to be something with the import statements that wallaby is not able to resolve. reflect-metadata shim is required when using…
adam nowak
  • 785
  • 2
  • 9
  • 17
2
votes
1 answer

Atom Quokka plugin error: Unexpected token import when importing a module written with ES6 -

I am trying to use the wonderful Quokka package by WallabyJS https://github.com/wallabyjs/atom-quokka. I am trying to import an ES6 module but keep getting an error in the Quokka console: Unexpected token import at createScript vm.js:56 I have…
Neil
  • 2,802
  • 8
  • 34
  • 49
2
votes
0 answers

"Failed: No provider for TestingCompilerFactory!"

I have followed the instructions here https://github.com/wallabyjs/ngCliWebpackSample to get an example angular-cli app running with wallabyjs. I can run the tests via 'npm run test' and all works fine with the 3 tests included passing. However, I…
Alan Beech
  • 21
  • 2
2
votes
0 answers

Wallaby and Haml - how to make it work?

Lately I have integrated Wallaby to my project, the DOM in this project is programmed with HAML instead of HTML, as long as I change Typescript / Javascript files Wallaby works great and tells me immediately which tests failed / passed, but when I…
Guy Ben-Moshe
  • 874
  • 1
  • 15
  • 23
2
votes
2 answers

Wallaby on a build server (CI)

we are currently using Wallaby.js for javascript unit testing. Works fine and is great. But within our development pipeline we of course want to run the same tests on the build server - in our case a tfs. Is it possible to use wallaby on a tfs…
timtos
  • 2,225
  • 2
  • 27
  • 39
2
votes
1 answer

Can Wallaby.js handle multiple test frameworks

Can Wallaby.js handle multiple testFramework values? I'm using typescript and it seems the wallaby config file doesn't need to have the testFramework specified to run jasmine tests. If I include my qunit tests it errors out on those tests. If I…
James Gardner
  • 671
  • 4
  • 21
1
vote
1 answer

Wallaby.js not working (Cannot find module '../../config-test.json' from 'node_modules/cpm-config.app.js')

I have join a new organization recently, and I am trying to configure my machine. As I am a huge fan of Wallaby.js, I'd like to make it work on my setup. But I can't set the env params correctly. Here is my wallaby.js file : 'use…
A Mehmeto
  • 1,594
  • 3
  • 22
  • 37
1
2 3 4