I seem to be running into some compile errors on my TypeScript project. The full error is: node_modules/@types/mocha/index.d.ts:2680:13 - error TS2403: Subsequ
I have read the document of mocha but can't follow the instruction. Because I have an Express Class like that // ExpressServer.js const http = require('http');
I occasionally forget to remove .only calls from my Mocha specs before pushing spec changes. Doing so obviously affects test coverage, which requires addressing
My Problem I'm writing a test suite for a Node.js application using Mocha. The functions that I'm testing write their logs to console.log directly, without any
I'm new Sinon. i'm unable to spy the private ajax function Actual code in library.js function ajax () { console.log("I'm a"); } function getJSON() {
I was trying to write unit testing for Google Cloud Functions referring to Google Cloud Platform unit testing docs but not able to understand how to mock when G
I am amassing a list of test files which need to be run. I'd like to pass them into Mocha via the command line. My current command looks like this: {here}/no
I'm using NestJS test module to mock the nest app and I want to share this app among various test suites. Here's my setup: test |_ helpers |_ testApp.ts
I would like the test runner to continue testing the whole it test even after the assertion fails. const { assert } = require('chai'); describe('Test suite', (
When starting my application it connects to MongoDB Atlas as logged, however, when running mocha tests it does not even try to connect to the DB. here is my ser
I have this test of nodejs when testing I get a error of done function not declared. Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done
I'm writing unit tests in Hardhat using Hardhat's mainnet fork, however it seems that the results from one test are affecting future tests and causing my assert
I have this (in gulpfile.js): var gulp = require("gulp"); var mocha = require("gulp-mocha"); gulp.task("test", function() { gulp .src(["./**/*_test
How to configure .mocharc.yml to choose exports-style interface. It should be like this ___:_____
I have some debugger statements in my module under test and want to run mocha with --debug-brk set and hit my breakpoint so that I can inspect the state of my m
I want to use mocha to test my TypeScript/Angular2 project. I tried to use ts-node as described here: npm install -g ts-node but when running mocha --r
I am trying to write a javascript test in intellij for which I need to import some dependancies and I want to use ES6 style import statements but getting error
How can I create parametrized tests with Mocha? Sample use case: I have 10 classes, that are 10 different implementations of the same interface. I want to run