detox
Version:
E2E tests and automation for mobile
14 lines (10 loc) • 331 B
JavaScript
const { DetoxError } = require('../../src/errors');
class TestRunnerError extends DetoxError {
constructor({ command, code, signal }) {
super(`Command failed with exit code = ${code}:\n${command}`);
this.code = code;
this.signal = signal;
this.name = 'TestRunnerError';
}
}
module.exports = TestRunnerError;