跑通测试
This commit is contained in:
parent
498c0a8ac0
commit
b4ce80d812
157
package.json
157
package.json
|
@ -1,75 +1,86 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
"react-component",
|
"react-component",
|
||||||
"bee-table",
|
"bee-table",
|
||||||
"iuap-design",
|
"iuap-design",
|
||||||
"tinper-bee",
|
"tinper-bee",
|
||||||
"Table"
|
"Table"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.0.0"
|
"node": ">=4.0.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/tinper-bee/bee-table.git",
|
"jest": {
|
||||||
"author": "Yonyou FED",
|
"moduleFileExtensions": [
|
||||||
"repository": "http://github.com/tinper-bee/bee-table",
|
"js",
|
||||||
"bugs": "https://github.com/tinper-bee/bee-table.git/issues",
|
"jsx"
|
||||||
"license": "MIT",
|
],
|
||||||
"main": "./build/index.js",
|
"transform": {
|
||||||
"config": {
|
"^.+\\.js$": "babel-jest"
|
||||||
"port": 3000,
|
}
|
||||||
"commitizen": {
|
},
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
"homepage": "https://github.com/tinper-bee/bee-table.git",
|
||||||
|
"author": "Yonyou FED",
|
||||||
|
"repository": "http://github.com/tinper-bee/bee-table",
|
||||||
|
"bugs": "https://github.com/tinper-bee/bee-table.git/issues",
|
||||||
|
"license": "MIT",
|
||||||
|
"main": "./build/index.js",
|
||||||
|
"config": {
|
||||||
|
"port": 3000,
|
||||||
|
"commitizen": {
|
||||||
|
"path": "./node_modules/cz-conventional-changelog"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "bee-tools run start",
|
||||||
|
"build": "bee-tools run build",
|
||||||
|
"lint": "bee-tools run lint",
|
||||||
|
"test": "jest",
|
||||||
|
"chrome": "bee-tools run chrome",
|
||||||
|
"coveralls": "",
|
||||||
|
"browsers": "bee-tools run browsers",
|
||||||
|
"pub": "bee-tools run pub",
|
||||||
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"classnames": "^2.2.5",
|
||||||
|
"object-path": "^0.11.3",
|
||||||
|
"tinper-bee-core": "latest",
|
||||||
|
"warning": "^3.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^15.3.0 || ^16.0",
|
||||||
|
"react-dom": "^15.3.0 || ^16.0",
|
||||||
|
"prop-types": "15.6.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"babel-jest": "^22.0.4",
|
||||||
|
"bee-animate": "latest",
|
||||||
|
"bee-button": "latest",
|
||||||
|
"bee-checkbox": "latest",
|
||||||
|
"bee-datepicker": "latest",
|
||||||
|
"bee-form": "^1.0.8",
|
||||||
|
"bee-form-control": "latest",
|
||||||
|
"bee-icon": "latest",
|
||||||
|
"bee-input-group": "latest",
|
||||||
|
"bee-layout": "latest",
|
||||||
|
"bee-pagination": "latest",
|
||||||
|
"bee-panel": "latest",
|
||||||
|
"bee-popconfirm": "^1.0.1",
|
||||||
|
"bee-select": "latest",
|
||||||
|
"bee-tools": "latest",
|
||||||
|
"bee-tooltip": "^1.0.2",
|
||||||
|
"chai": "^3.5.0",
|
||||||
|
"console-polyfill": "~0.2.1",
|
||||||
|
"cz-conventional-changelog": "^2.1.0",
|
||||||
|
"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"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"scripts": {
|
|
||||||
"dev": "bee-tools run start",
|
|
||||||
"build": "bee-tools run build",
|
|
||||||
"lint": "bee-tools run lint",
|
|
||||||
"test": "bee-tools run test",
|
|
||||||
"chrome": "bee-tools run chrome",
|
|
||||||
"coveralls": "bee-tools run coverage",
|
|
||||||
"browsers": "bee-tools run browsers",
|
|
||||||
"pub": "bee-tools run pub",
|
|
||||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"classnames": "^2.2.5",
|
|
||||||
"object-path": "^0.11.3",
|
|
||||||
"tinper-bee-core": "latest",
|
|
||||||
"warning": "^3.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^15.3.0 || ^16.0",
|
|
||||||
"react-dom": "^15.3.0 || ^16.0",
|
|
||||||
"prop-types": "15.6.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"bee-animate": "latest",
|
|
||||||
"bee-button": "latest",
|
|
||||||
"bee-checkbox": "latest",
|
|
||||||
"bee-datepicker": "latest",
|
|
||||||
"bee-form": "^1.0.8",
|
|
||||||
"bee-form-control": "latest",
|
|
||||||
"bee-icon": "latest",
|
|
||||||
"bee-input-group": "latest",
|
|
||||||
"bee-layout": "latest",
|
|
||||||
"bee-pagination": "latest",
|
|
||||||
"bee-panel": "latest",
|
|
||||||
"bee-popconfirm": "^1.0.1",
|
|
||||||
"bee-select": "latest",
|
|
||||||
"bee-tools": "latest",
|
|
||||||
"bee-tooltip": "^1.0.2",
|
|
||||||
"chai": "^3.5.0",
|
|
||||||
"console-polyfill": "~0.2.1",
|
|
||||||
"cz-conventional-changelog": "^2.1.0",
|
|
||||||
"enzyme": "^2.4.1",
|
|
||||||
"es5-shim": "~4.1.10",
|
|
||||||
"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 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