console-fail-test
Version:
Gently fails test runs if the console was used during them. 📢
8 lines • 347 B
JavaScript
const isValidMemberName = (methodName) => !methodName.startsWith("_") && methodName[0].toLowerCase() === methodName[0];
const consoleMethodNames = Object.keys(console).filter(
(methodName) => isValidMemberName(methodName) && typeof console[methodName] === "function"
).sort();
export {
consoleMethodNames
};
//# sourceMappingURL=console.js.map