speed up tests

This commit is contained in:
afc163 2015-11-03 12:08:18 +08:00
parent c0dc894cbe
commit 042bf1a20d
2 changed files with 2 additions and 14 deletions

View File

@ -123,7 +123,8 @@
"<rootDir>/node_modules/*" "<rootDir>/node_modules/*"
], ],
"scriptPreprocessor": "<rootDir>/node_modules/webpack-babel-jest", "scriptPreprocessor": "<rootDir>/node_modules/webpack-babel-jest",
"testDirectoryName": "tests" "testDirectoryName": "tests",
"preprocessCachingDisabled": false
}, },
"precommit": [ "precommit": [
"lint" "lint"

View File

@ -1,13 +0,0 @@
jest.dontMock('../index');
import React from 'react';
import antd, {
Button,
} from '../index';
describe('antd', function() {
it('antd and components should be existd', function() {
expect(antd).toBeTruthy();
expect(Button).toBeTruthy();
});
});