mirror of
https://github.com/status-im/metro.git
synced 2025-01-21 00:19:31 +00:00
[jest] Update to v0.4.2
This commit is contained in:
parent
d93f66ca23
commit
5663456373
@ -1,10 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
jest
|
jest
|
||||||
.dontMock('path')
|
|
||||||
.dontMock('../../lib/getAssetDataFromName')
|
.dontMock('../../lib/getAssetDataFromName')
|
||||||
.dontMock('../');
|
.dontMock('../');
|
||||||
|
|
||||||
|
jest
|
||||||
|
.mock('crypto')
|
||||||
|
.mock('fs');
|
||||||
|
|
||||||
var Promise = require('bluebird');
|
var Promise = require('bluebird');
|
||||||
|
|
||||||
describe('AssetServer', function() {
|
describe('AssetServer', function() {
|
||||||
|
@ -10,13 +10,14 @@
|
|||||||
|
|
||||||
jest
|
jest
|
||||||
.dontMock('../index')
|
.dontMock('../index')
|
||||||
.dontMock('path')
|
|
||||||
.dontMock('absolute-path')
|
.dontMock('absolute-path')
|
||||||
.dontMock('../docblock')
|
.dontMock('../docblock')
|
||||||
.dontMock('../../replacePatterns')
|
.dontMock('../../replacePatterns')
|
||||||
.dontMock('../../../../lib/getAssetDataFromName')
|
.dontMock('../../../../lib/getAssetDataFromName')
|
||||||
.setMock('../../../ModuleDescriptor', function(data) {return data;});
|
.setMock('../../../ModuleDescriptor', function(data) {return data;});
|
||||||
|
|
||||||
|
jest.mock('fs');
|
||||||
|
|
||||||
describe('DependencyGraph', function() {
|
describe('DependencyGraph', function() {
|
||||||
var DependencyGraph;
|
var DependencyGraph;
|
||||||
var fileWatcher;
|
var fileWatcher;
|
||||||
|
@ -13,6 +13,8 @@ jest.dontMock('../')
|
|||||||
.dontMock('../replacePatterns')
|
.dontMock('../replacePatterns')
|
||||||
.setMock('../../ModuleDescriptor', function(data) {return data;});
|
.setMock('../../ModuleDescriptor', function(data) {return data;});
|
||||||
|
|
||||||
|
jest.mock('path');
|
||||||
|
|
||||||
var Promise = require('bluebird');
|
var Promise = require('bluebird');
|
||||||
|
|
||||||
describe('HasteDependencyResolver', function() {
|
describe('HasteDependencyResolver', function() {
|
||||||
|
@ -10,11 +10,13 @@
|
|||||||
|
|
||||||
jest
|
jest
|
||||||
.dontMock('underscore')
|
.dontMock('underscore')
|
||||||
.dontMock('path')
|
|
||||||
.dontMock('absolute-path')
|
.dontMock('absolute-path')
|
||||||
.dontMock('crypto')
|
|
||||||
.dontMock('../Cache');
|
.dontMock('../Cache');
|
||||||
|
|
||||||
|
jest
|
||||||
|
.mock('os')
|
||||||
|
.mock('fs');
|
||||||
|
|
||||||
var Promise = require('bluebird');
|
var Promise = require('bluebird');
|
||||||
|
|
||||||
describe('JSTransformer Cache', function() {
|
describe('JSTransformer Cache', function() {
|
||||||
|
@ -10,10 +10,11 @@
|
|||||||
|
|
||||||
jest
|
jest
|
||||||
.dontMock('worker-farm')
|
.dontMock('worker-farm')
|
||||||
.dontMock('os')
|
|
||||||
.dontMock('../../lib/ModuleTransport')
|
.dontMock('../../lib/ModuleTransport')
|
||||||
.dontMock('../index');
|
.dontMock('../index');
|
||||||
|
|
||||||
|
jest.mock('fs');
|
||||||
|
|
||||||
var OPTIONS = {
|
var OPTIONS = {
|
||||||
transformModulePath: '/foo/bar'
|
transformModulePath: '/foo/bar'
|
||||||
};
|
};
|
||||||
|
@ -10,13 +10,13 @@
|
|||||||
|
|
||||||
jest
|
jest
|
||||||
.setMock('worker-farm', function() { return function() {};})
|
.setMock('worker-farm', function() { return function() {};})
|
||||||
.dontMock('path')
|
|
||||||
.dontMock('os')
|
|
||||||
.dontMock('underscore')
|
.dontMock('underscore')
|
||||||
.dontMock('../../lib/ModuleTransport')
|
.dontMock('../../lib/ModuleTransport')
|
||||||
.setMock('uglify-js')
|
.setMock('uglify-js')
|
||||||
.dontMock('../');
|
.dontMock('../');
|
||||||
|
|
||||||
|
jest.mock('fs');
|
||||||
|
|
||||||
var Promise = require('bluebird');
|
var Promise = require('bluebird');
|
||||||
|
|
||||||
describe('Packager', function() {
|
describe('Packager', function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user