[jest] Update to v0.4.2

This commit is contained in:
Dmitry Soshnikov 2015-05-10 22:18:55 -07:00 committed by Christopher Chedeau
parent d93f66ca23
commit 5663456373
6 changed files with 16 additions and 7 deletions

View File

@ -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() {

View File

@ -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;

View File

@ -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() {

View File

@ -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() {

View File

@ -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'
}; };

View File

@ -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() {