Mocha tests are ignored when used within repetitive stream callbacks
Clash Royale CLAN TAG #URR8PPP Mocha tests are ignored when used within repetitive stream callbacks My task is to test some js function against big test vector corpus (10M+), also requirement to test in browser forced me to stream testvectors from local webserver, rather than synchronously read from file record by record. So, I'm obtaining (one per line ascii) test vectors this way: const http = require('http'); const readline = require('readline'); FetchTestVectors = function(filename, recordCb) { const url = "http://localhost:8080/" + filename; http.get(url) .on('response', function(response) { readline.createInterface({ input: response }) .on('line', function(line) { //recordCb(line.split(':')); recordCb(line); }) }); } And when trying to test it, inner describe-it block becomes ignored (all callbacks). However, I can see...