python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Is it possible to save mocha reporter as well as displaying it?
I am using puppeteer and mocha for some tests. By default, the reporter displays results at the end of a run in the console.
It is also possible to save the report in a separate file.
I cannot seem to...
emsauce
Votes: 0
Answers: 1
Jest mock promise rejection to enforce rejection in calling function
I'm trying to test the following get function using Jest. How can test / mock the Promise rejection in localForage.getItem, so that I can test the get catch block?
async get<T>(key: string): Pro...

BuZZ-dEE
Votes: 0
Answers: 2
How to mock and testing an FTP Connection with Mocha
I am using the FTP library to establish an FTP connection to receive files from a specific location. I need to cover with tests mocha
const client = new Client();
const connect = {
host: ...
Vitalii505
Votes: 0
Answers: 0
How to run a test in loop based on the index of the objects returned by fixture in Cypress.io?
I need to run a test 'n' times based on the number of objects returned by the fixture in Cypress.io. I am using forEach method exposed by Cypress for looping. I am using the forEach loop in the outer ...
R. Rahul
Votes: 0
Answers: 2