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
0
votes
1 answer

How to setup wallaby.js in nrwl nx monorepo with angular and nest.js

I try to setup wallaby in my nrwl/nx monorepo. I have a angular 8 and a nest.js app in this monorep. I use Jest for testing and latest Jetbrains Webstorm IDE. I could not find any instructions on how to get wallaby up and running in this setup. …
Andreas
  • 1,551
  • 4
  • 24
  • 55
0
votes
1 answer

wallaby.js with jQuery

We are using wallaby.js in an Angular 4 project with typescript and there are some parts using jQuery. Wallaby.js is throwing a ReferenceError: ​​ReferenceError: $ is not defined​​ Any ideas how to fix this? Some Sample code: import { Injectable }…
Mathias Müller
  • 303
  • 3
  • 12
0
votes
0 answers

Wallabyjs - setting noEmitOnError to true produces errors

I am using Wallabyjs with Visual Studio, Angular 5, Webpack and Typescript. After it now happend a few times, that code was pushed to the repository although there was a compilation error in the spec files, I wanted to activate noEmitOnError with…
timtos
  • 2,225
  • 2
  • 27
  • 39
0
votes
2 answers

Wallaby.js not working with jasmine callFake(...)?

Problem wallaby.js seems not to be working with jasmine callFake. I want to use the arguments passed to the original function inside the the "fake" function. But I always get undefined with wallaby. The test below works when running jasmine…
0
votes
2 answers

Postgres connection timeout in Wallaby acceptance tests

I’m having a couple issues with Postgres timeouts in my Wallaby tests. The error I’m getting is: [error] Postgrex.Protocol (#PID<0.349.0>) disconnected: ** (DBConnection.ConnectionError) owner #PID<0.566.0> timed out because it owned the connection…
marcdel
  • 23
  • 4
0
votes
1 answer

How to change node binary for wallaby on visual studio code?

My wallaby configuration is crashing and I think it's because I'm using the wrong version of node to process my wallaby.config.js file. I want to change the version of node that wallaby uses, but I'm not sure where that setting is located? To…
cwohlman
  • 763
  • 6
  • 21
0
votes
2 answers

adding to an existing Object prototype in typescript

I'm using the fantastic Wallaby testing solution to run realtime tests but it -- by default -- intercepts stdout and stderr (for good reasons). In the cases where I do not want this to happen I can override the behavior by tucking a variable into…
ken
  • 8,763
  • 11
  • 72
  • 133
0
votes
0 answers

Wallaby.js not working for Sublime 3

I'm trying to use Wallaby.js in Sublime for an Angular project. I've installed the package, but when I 'Start' wallaby, nothing displays. Anyone have experience with this config and wallaby? Update: I'm developing on a mac. I've scaffolded my…
cnak2
  • 1,711
  • 3
  • 28
  • 53
0
votes
1 answer

TDD: Sinon 2.x and trying to test a sync method that uses async

So I've run into another snag, which I'm fighting with... I have a method that is a sync call, and within this method it calls a promise, async, method. in my app I have the following: export class App { constructor(menuService) { …
KellyTheDev
  • 891
  • 2
  • 12
  • 31
0
votes
1 answer

Angular-cli@webpack with wallabyjs

I'm trying to configure wallabyjs for my project generated with latest angular-cli (angular-cli@webpack-beta.11). I followed the "official" angular2-webpack-wallaby config, but unfortunately I've got an error [Error] Runtime error: Error: Cannot…
bucicimaci
  • 1,261
  • 1
  • 9
  • 17
0
votes
1 answer

Wallabyjs - keep getting TypeError: 'undefined'

I'm trying to use wallaby config similar to this example, and I keep getting the following error: TypeError: 'undefined' is not an object (evaluating 'window.__moduleBundler.loadTests') My wallabyjs: var wallabyWebpack =…
Yaniv Efraim
  • 6,633
  • 7
  • 53
  • 96
0
votes
2 answers

wallaby.js got error >> SyntaxError: Unexpected token u

i tried to set up wallaby.js on visual studio code. my project use language: node.js (es6) test: mocha ide: visual studio code node version: v5.9.0 i always got this error when i run wallaby SyntaxError: Unexpected token u ====== my wallaby…
Alongkorn
  • 3,968
  • 1
  • 24
  • 41
0
votes
0 answers

Stumped: working wallaby.js config for meteor 1.3?

I have been trying to get a working wallaby.js configuration file for my meteor project and simply can't get it to work. I've borrowed from https://github.com/xolvio/automated-testing-best-practices and I have this currently: const babel =…
Greg Beaver
  • 1,062
  • 11
  • 10
0
votes
0 answers

Wallabyjs React testing

How to use Wallabyjs with React + shallow rendering + jsdom + webpack with css loader? It works if I am not importing css to my component and so not using webpack. To import css into the component I was trying to configure webpack with css loader,…
petrov.alex
  • 1,089
  • 2
  • 12
  • 20
0
votes
1 answer

How to handle wallabyjs and karma configuration (with requirejs)

After reading the answers and comments on the topic Wallaby on a build server (CI) I accepted that wallabyjs is currently not ready for a ci scenario. Ok, but I am still questioning myself how to handle the typical scenario, that one uses wallabyjs…
timtos
  • 2,225
  • 2
  • 27
  • 39