codeceptjs
Version:
Supercharged End 2 End Testing Framework for NodeJS
17 lines (12 loc) • 398 B
JavaScript
const { tryTo } = require('../effects')
const defaultConfig = {
registerGlobal: true,
}
module.exports = function (config) {
config = Object.assign(defaultConfig, config)
console.log(`Deprecation Warning: 'tryTo' has been moved to the 'codeceptjs/effects' module. Disable tryTo plugin to remove this warning.`)
if (config.registerGlobal) {
global.tryTo = tryTo
}
return tryTo
}