[jest] Update to v0.4.2
This commit is contained in:
parent
aa19232609
commit
792b2db23c
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -13,6 +13,8 @@ jest.dontMock('../')
|
|||
.dontMock('../replacePatterns')
|
||||
.setMock('../../ModuleDescriptor', function(data) {return data;});
|
||||
|
||||
jest.mock('path');
|
||||
|
||||
var Promise = require('bluebird');
|
||||
|
||||
describe('HasteDependencyResolver', function() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
|
||||
jest
|
||||
.dontMock('worker-farm')
|
||||
.dontMock('os')
|
||||
.dontMock('../../lib/ModuleTransport')
|
||||
.dontMock('../index');
|
||||
|
||||
jest.mock('fs');
|
||||
|
||||
var OPTIONS = {
|
||||
transformModulePath: '/foo/bar'
|
||||
};
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue