mirror of https://github.com/status-im/metro.git
[cli] convert project generation to use yeoman
This commit is contained in:
parent
1d6f7c9cc7
commit
6ed3ba3e41
|
@ -1,13 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) 2015-present, Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
dim: function(s) { return s; },
|
|
||||||
};
|
|
|
@ -9,6 +9,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
jest.autoMockOff();
|
jest.autoMockOff();
|
||||||
|
jest.setMock('chalk', {
|
||||||
|
dim: function(s) { return s; },
|
||||||
|
});
|
||||||
|
|
||||||
describe('Activity', function() {
|
describe('Activity', function() {
|
||||||
var Activity;
|
var Activity;
|
||||||
|
|
|
@ -22,7 +22,8 @@ jest
|
||||||
.dontMock('../../AssetModule')
|
.dontMock('../../AssetModule')
|
||||||
.dontMock('../../Module')
|
.dontMock('../../Module')
|
||||||
.dontMock('../../Package')
|
.dontMock('../../Package')
|
||||||
.dontMock('../../ModuleCache');
|
.dontMock('../../ModuleCache')
|
||||||
|
.setMock('chalk', { dim: function(s) { return s; } });
|
||||||
|
|
||||||
const Promise = require('promise');
|
const Promise = require('promise');
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
|
|
||||||
jest.dontMock('../')
|
jest.dontMock('../')
|
||||||
.dontMock('q')
|
.dontMock('q')
|
||||||
.dontMock('../replacePatterns');
|
.dontMock('../replacePatterns')
|
||||||
|
.setMock('chalk', { dim: function(s) { return s; } });
|
||||||
|
|
||||||
jest.mock('path');
|
jest.mock('path');
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@ jest
|
||||||
.dontMock('underscore')
|
.dontMock('underscore')
|
||||||
.dontMock('../../lib/ModuleTransport')
|
.dontMock('../../lib/ModuleTransport')
|
||||||
.setMock('uglify-js')
|
.setMock('uglify-js')
|
||||||
.dontMock('../');
|
.dontMock('../')
|
||||||
|
.setMock('chalk', { dim: function(s) { return s; } });
|
||||||
|
|
||||||
jest.mock('fs');
|
jest.mock('fs');
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,8 @@ jest.setMock('worker-farm', function() { return function() {}; })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.setMock('uglify-js')
|
.setMock('uglify-js')
|
||||||
.dontMock('../');
|
.dontMock('../')
|
||||||
|
.setMock('chalk', { dim: function(s) { return s; } });
|
||||||
|
|
||||||
var Promise = require('promise');
|
var Promise = require('promise');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue