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
1
vote
1 answer

Configuring jest, wallabyjs in a rush monorepo

I'm attempting to set up a monorepo using rush for monorepo management, jest as my test framework, and wallabyjs as my test runner. When I attempt to start wallaby, I get the error [Error] Automatic Jest configuration error: Module jest-cli is not…
TimTheEnchanter
  • 3,370
  • 1
  • 26
  • 47
1
vote
1 answer

Wallaby.js - Zone is needed for the async() test helper

This is an Angular 6.x project, testing via Karma/Jasmine I'm not sure if this is an issue with Wallaby or not, but my tests work when running them outside of Wallaby so I think this may be a config issue...? Anyways, when running my tests, I get…
dudewad
  • 13,215
  • 6
  • 37
  • 46
1
vote
1 answer

$_$wf is not defined​ wallaby.js and puppeteer interference

I am trying to run end to end tests using puppeteer and mocha with wallaby.js In VSCode Wallaby rejects tests that use page.evaluate with the error: ​​ReferenceError: $_$wf is not defined​​ Heres a link to the evaluate documentation Wallaby is…
yhattav
  • 63
  • 6
1
vote
0 answers

How can I use wallabyjs to run my tests on Polymer 2.0

There is a example using Polymer 1.x on wallaby-polymer-sample but it doesn't work with Polymer 2.0. This is my wallaby.js file: module.exports = function (wallaby) { return { files: [ {pattern:…
Paulo Alexandre
  • 764
  • 1
  • 9
  • 20
1
vote
0 answers

ES5 modules with Typescript, Karma and Wallaby

We're working on an aurelia-based app using typescript. For our test setup we use jasmine, and karma + wallby for our testrunnes. Wallaby for development (due to the ide integration), and karma for buildserver tests. Recently we took in a dependency…
1
vote
1 answer

Wallabyjs with Bower and Requirejs (Visual Studio)

I started using bower within my web application now and as I am using wallabyjs for testing I added { pattern: 'bower_components/**/*.*', instrument: false, load: false } to my wallabyjs configuration. Everything is working fine that way. But as…
timtos
  • 2,225
  • 2
  • 27
  • 39
1
vote
1 answer

array.sort behaving strangely with wallaby.js

I have a function that constructs an array like, [{index: 1}, {index: 4}, {index: 7}]. The array is ordered by the objects' index value. I have narrowed the scope of the function to just a sorting of an array and wallaby indicates the order of the…
1
vote
0 answers

Start wallaby.js automatically after visual studio solution got loaded

I can not find a way to start wallaby.js automatically after a solution got loaded. Beside the fact that one always (or mostly) wants to start wallaby.js anyway and thus starting it manually is just annoying it is also 'dangerous' if one forgets to…
timtos
  • 2,225
  • 2
  • 27
  • 39
1
vote
1 answer

Wallaby.js code coverage indicators only show in test file

I'm trialing Wallaby.js using VS2013. I've got it running for one test class, lets call it queueTests.ts, which covers the class queue.ts. The tests run and pass (or fail if I break them) and it's pretty cool. The problem I have is that in the…
James Gardner
  • 671
  • 4
  • 21
1
vote
0 answers

How to configure time formatting in Wallaby/Phantom?

I've been trying to do some time formatting within a unit test, and noticed an inconsistency between Jasmine and when using Wallaby. I'm trying to figure out why this is. If I take the following example: var options = { year: "numeric", month:…
Ian
  • 33,605
  • 26
  • 118
  • 198
1
vote
1 answer

Wallaby with Browserify and TypeScript modules

I am trying to get Wallaby to work with a TypeScript app, using Browserify and Wallabify. However, when I run Wallaby, it outputs No failing tests, 0 passing, and all test indicators are grey. The file app/spec.setup.ts is responsible for loading…
Merott
  • 7,189
  • 6
  • 40
  • 52
1
vote
1 answer

Wallaby js in Visual Studio : tests in different folder

I am using a wallaby.js with jasmine for FE unit tests. I would like to separate the Tests from Productive Code in such a way, that i create two projects - A and A_Test. All productive code is in A and all test code is in A_Test. The problem with…
1
vote
1 answer

Using Wallaby with LoopbackJS

I'm trying to use Wallaby with LoopbackJS and last couple of hours brought only failures. Maybe someone here already figured out how to do it. Here is my wallaby config that is closest to "it's working" module.exports = function () { return…
Paweł Wszoła
  • 1,096
  • 1
  • 9
  • 21
0
votes
1 answer

Can't run wallaby.js with jest in vscode

I have a project with jest and typescript. When I run jest, the tests run correctly. I prepared the wallaby.config.js file: // wallaby.config.js export default function () { return { autoDetect: true, trace: true, files: ['src/**',…
David
  • 923
  • 8
  • 19
0
votes
0 answers

How to ensure jest mocks always reset?

I have a couple of tests that are acting flaky. Sometimes they pass, sometimes not. How do I mock out a module but ensure that the call count gets reset between tests? What am I doing wrong? jest.mock('dockerode') import Docker from…
Justin Young
  • 2,393
  • 3
  • 36
  • 62