[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 aa19232609
commit 792b2db23c
6 changed files with 16 additions and 7 deletions

View File

@ -1,10 +1,13 @@
'use strict';
jest
.dontMock('path')
.dontMock('../../lib/getAssetDataFromName')
.dontMock('../');
jest
.mock('crypto')
.mock('fs');
var Promise = require('bluebird');
describe('AssetServer', function() {

View File

@ -10,13 +10,14 @@
jest
.dontMock('../index')
.dontMock('path')
.dontMock('absolute-path')
.dontMock('../docblock')
.dontMock('../../replacePatterns')
.dontMock('../../../../lib/getAssetDataFromName')
.setMock('../../../ModuleDescriptor', function(data) {return data;});
jest.mock('fs');
describe('DependencyGraph', function() {
var DependencyGraph;
var fileWatcher;

View File

@ -13,6 +13,8 @@ jest.dontMock('../')
.dontMock('../replacePatterns')
.setMock('../../ModuleDescriptor', function(data) {return data;});
jest.mock('path');
var Promise = require('bluebird');
describe('HasteDependencyResolver', function() {

View File

@ -10,11 +10,13 @@
jest
.dontMock('underscore')
.dontMock('path')
.dontMock('absolute-path')
.dontMock('crypto')
.dontMock('../Cache');
jest
.mock('os')
.mock('fs');
var Promise = require('bluebird');
describe('JSTransformer Cache', function() {

View File

@ -10,10 +10,11 @@
jest
.dontMock('worker-farm')
.dontMock('os')
.dontMock('../../lib/ModuleTransport')
.dontMock('../index');
jest.mock('fs');
var OPTIONS = {
transformModulePath: '/foo/bar'
};

View File

@ -10,13 +10,13 @@
jest
.setMock('worker-farm', function() { return function() {};})
.dontMock('path')
.dontMock('os')
.dontMock('underscore')
.dontMock('../../lib/ModuleTransport')
.setMock('uglify-js')
.dontMock('../');
jest.mock('fs');
var Promise = require('bluebird');
describe('Packager', function() {