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