test/integration/fixtures/multiple-runs/multiple-runs-with-flaky-before-each.fixture.js
raw| 1 | 'use strict'; |
| 2 | const Mocha = require('../../../../lib/mocha'); |
| 3 | |
| 4 | const mocha = new Mocha({ reporter: 'json' }); |
| 5 | mocha.cleanReferencesAfterRun(false); |
| 6 | mocha.addFile(require.resolve('./multiple-runs-with-flaky-before-each-suite.fixture.js')); |
| 7 | console.log('['); |
| 8 | mocha.run(() => { |
| 9 | console.log(','); |
| 10 | mocha.run(() => { |
| 11 | console.log(']'); |
| 12 | }); |
| 13 | }); |