mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
19 lines
713 B
JavaScript
19 lines
713 B
JavaScript
const DetoxReporter = require('../jest/reporter');
|
|
|
|
test('DetoxReporter', () => {
|
|
const reporter = new DetoxReporter({
|
|
bail: 0,
|
|
reporters: [['default', {}]],
|
|
});
|
|
|
|
expect(reporter.getLastError).toBeInstanceOf(Function);
|
|
expect(reporter.onRunStart).toBeInstanceOf(Function);
|
|
expect(reporter.onTestFileStart).toBeInstanceOf(Function);
|
|
expect(reporter.onTestStart).toBeInstanceOf(Function);
|
|
expect(reporter.onTestCaseStart).toBeInstanceOf(Function);
|
|
expect(reporter.onTestCaseResult).toBeInstanceOf(Function);
|
|
expect(reporter.onTestFileResult).toBeInstanceOf(Function);
|
|
expect(reporter.onTestResult).toBeInstanceOf(Function);
|
|
expect(reporter.onRunComplete).toBeInstanceOf(Function);
|
|
});
|