跑通测试

This commit is contained in:
huyueb 2018-01-04 16:58:50 +08:00
parent 498c0a8ac0
commit b4ce80d812
3 changed files with 94 additions and 77 deletions

3
.babelrc Normal file
View File

@ -0,0 +1,3 @@
{
"presets": ["es2015", "react"]
}

View File

@ -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"

View File

@ -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);
});