Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

351 B
Raw Blame
'use strict';
const Mocha = require('../../../../lib/mocha.cjs');

const mocha = new Mocha({ reporter: 'json' });
mocha.cleanReferencesAfterRun(false);
mocha.addFile(require.resolve('./multiple-runs-with-flaky-before-each-suite.fixture.js'));
console.log('[');
mocha.run(() => {
  console.log(',');
  mocha.run(() => {
    console.log(']');
  });
});