UNPKG

nightwatch

Version:

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

6 lines (5 loc) 160 B
module.exports = function(err) { return (err instanceof Error) && [ 'TypeError', 'SyntaxError', 'ReferenceError', 'RangeError' ].includes(err.name); };