mirror of https://github.com/embarklabs/embark.git
warn about EmbarkSpec deprecation
This commit is contained in:
parent
b7d6bc1c45
commit
329af9f348
|
@ -56,12 +56,16 @@ module.exports = {
|
|||
global.assert = assert;
|
||||
global.config = test.config.bind(test);
|
||||
|
||||
global.deployAll = function () {
|
||||
console.error(__('%s is not supported anymore', 'deployAll').red);
|
||||
let deprecatedWarning = function() {
|
||||
console.error(__('%s are not supported anymore', 'EmbarkSpec & deployAll').red);
|
||||
console.info(__('You can learn about the new revamped tests here: %s', 'https://embark.status.im/docs/testing.html'.underline));
|
||||
process.exit();
|
||||
};
|
||||
|
||||
global.deployAll = deprecatedWarning;
|
||||
global.EmbarkSpec = {};
|
||||
global.EmbarkSpec.deployAll = deprecatedWarning;
|
||||
|
||||
// Override require to enable `require('Embark/contracts/contractName');`
|
||||
const Module = require('module');
|
||||
const originalRequire = require('module').prototype.require;
|
||||
|
|
Loading…
Reference in New Issue