Skip to content

armgit / mocha

Public Imported from GitHub
0

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

511 B
Raw Blame
module.exports = function (mocha) {
  mocha.addFile(require.resolve('./multiple-runs-with-different-output-suite.fixture.js'));
  console.log('[');
  try {
    mocha.run(() => {
      console.log(',');
      try {
        mocha.run(() => {
          console.log(',');
          mocha.run(() => {
            console.log(']');
          });
        });
      } catch (err) {
        console.error(err.code);
        throw err;
      }
    });
  } catch (err) {
    console.error(err.code);
    throw err;
  }

}