跑通测试
This commit is contained in:
parent
498c0a8ac0
commit
b4ce80d812
17
package.json
17
package.json
|
@ -13,6 +13,15 @@
|
|||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"jest": {
|
||||
"moduleFileExtensions": [
|
||||
"js",
|
||||
"jsx"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.js$": "babel-jest"
|
||||
}
|
||||
},
|
||||
"homepage": "https://github.com/tinper-bee/bee-table.git",
|
||||
"author": "Yonyou FED",
|
||||
"repository": "http://github.com/tinper-bee/bee-table",
|
||||
|
@ -29,9 +38,9 @@
|
|||
"dev": "bee-tools run start",
|
||||
"build": "bee-tools run build",
|
||||
"lint": "bee-tools run lint",
|
||||
"test": "bee-tools run test",
|
||||
"test": "jest",
|
||||
"chrome": "bee-tools run chrome",
|
||||
"coveralls": "bee-tools run coverage",
|
||||
"coveralls": "",
|
||||
"browsers": "bee-tools run browsers",
|
||||
"pub": "bee-tools run pub",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
|
||||
|
@ -48,6 +57,7 @@
|
|||
"prop-types": "15.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-jest": "^22.0.4",
|
||||
"bee-animate": "latest",
|
||||
"bee-button": "latest",
|
||||
"bee-checkbox": "latest",
|
||||
|
@ -66,8 +76,9 @@
|
|||
"chai": "^3.5.0",
|
||||
"console-polyfill": "~0.2.1",
|
||||
"cz-conventional-changelog": "^2.1.0",
|
||||
"enzyme": "^2.4.1",
|
||||
"enzyme": "^2.9.1",
|
||||
"es5-shim": "~4.1.10",
|
||||
"jest": "^22.0.4",
|
||||
"react": "^15.5.0",
|
||||
"react-addons-test-utils": "^15.5.0",
|
||||
"react-dom": "^15.5.0"
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
import React from 'react';
|
||||
import {shallow, mount, render} from 'enzyme';
|
||||
import {expect} from 'chai';
|
||||
import Table from '../src/index';
|
||||
import React from "react";
|
||||
import { shallow } from "enzyme";
|
||||
import Table from "../build/index";
|
||||
|
||||
it("bee-table test", () => {
|
||||
expect(3).toBe(3);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue