Skip to content

Commit

Permalink
add verification devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Nov 25, 2018
1 parent 9416cd7 commit 949151d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/functions/mock
/tests/*
./*
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = {
'react/forbid-prop-types': 0,
'react/jsx-one-expression-per-line': 0,
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }],
'import/no-extraneous-dependencies': [2, { optionalDependencies: true }],
'import/no-extraneous-dependencies': [
2,
{ optionalDependencies: true, devDependencies: false },
],
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
Expand Down
1 change: 1 addition & 0 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ps https://github.com/GoogleChrome/puppeteer/issues/3120
module.exports = {
launch: {
headless: false,
args: [
'--disable-gpu',
'--disable-dev-shm-usage',
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"dependencies": {
"@babel/runtime": "^7.1.5",
"antd": "^3.10.8",
"bizcharts": "^3.3.0",
"antd": "^3.10.9",
"bizcharts": "^3.4.0",
"bizcharts-plugin-slider": "^2.1.1-beta.1",
"classnames": "^2.2.6",
"dva": "^2.4.0",
Expand All @@ -47,7 +47,7 @@
"omit.js": "^1.0.0",
"path-to-regexp": "^2.4.0",
"prop-types": "^15.5.10",
"qs": "^6.5.2",
"qs": "^6.6.0",
"rc-animate": "^2.4.4",
"react": "^16.5.1",
"react-container-query": "^0.11.0",
Expand All @@ -60,8 +60,8 @@
},
"devDependencies": {
"@antv/data-set": "^0.10.0",
"@types/react": "^16.7.6",
"@types/react-dom": "^16.0.9",
"@types/react": "^16.7.7",
"@types/react-dom": "^16.0.10",
"antd-pro-merge-less": "^0.2.0",
"antd-theme-webpack-plugin": "^1.1.8",
"babel-eslint": "^10.0.1",
Expand All @@ -78,14 +78,14 @@
"eslint-plugin-markdown": "^1.0.0-beta.6",
"eslint-plugin-react": "^7.11.1",
"gh-pages": "^2.0.1",
"husky": "^1.1.2",
"husky": "^1.2.0",
"jest-puppeteer": "^3.5.1",
"lint-staged": "^8.0.4",
"lint-staged": "^8.1.0",
"merge-umi-mock-data": "^0.0.3",
"mockjs": "^1.0.1-beta3",
"prettier": "1.15.2",
"pro-download": "^1.0.1",
"stylelint": "^9.4.0",
"stylelint": "^9.8.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-standard": "^18.0.0",
"tslint": "^5.10.0",
Expand Down
5 changes: 0 additions & 5 deletions src/e2e/userLayout.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ function formatter(data) {
}

describe('Homepage', () => {
let browser;
let page;

const testPage = path => async () => {
await page.goto(`${BASE_URL}${path}`);
await page.waitForSelector('footer', {
Expand All @@ -32,6 +29,4 @@ describe('Homepage', () => {
formatter(RouterConfig[0].routes).forEach(route => {
fit(`test pages ${route}`, testPage(route));
});

afterAll(() => browser.close());
});

0 comments on commit 949151d

Please sign in to comment.