Skip to content

Instantly share code, notes, and snippets.

@donocode
donocode / build-tests.js
Last active May 19, 2017 19:41
Generate batched tests for karma-webpack
const path = require('path');
const Promise = require('bluebird');
const readdir = Promise.promisify(require('fs').readdir);
const stat = Promise.promisify(require('fs').stat);
const writeFile = Promise.promisify(require('fs').writeFile);
const recurse = Promise.promisify(require('recursive-readdir'));
const backSlashRegex = /\\{1,2}/g;
// A list of files that should always be included in the test files
@donocode
donocode / cypress.json
Last active February 16, 2021 07:23
Output JSON structured logs from cypress for machine readable test logs
{
"reporter": "structured-log.js",
"quiet": true
}