Commit 949151dc authored by 陈帅's avatar 陈帅

add verification devDependencies

parent 9416cd7d
/functions/mock /functions/mock
/tests/*
./*
\ No newline at end of file
...@@ -20,7 +20,10 @@ module.exports = { ...@@ -20,7 +20,10 @@ module.exports = {
'react/forbid-prop-types': 0, 'react/forbid-prop-types': 0,
'react/jsx-one-expression-per-line': 0, 'react/jsx-one-expression-per-line': 0,
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }], '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/no-noninteractive-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0, 'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0, 'jsx-a11y/no-static-element-interactions': 0,
......
// ps https://github.com/GoogleChrome/puppeteer/issues/3120 // ps https://github.com/GoogleChrome/puppeteer/issues/3120
module.exports = { module.exports = {
launch: { launch: {
headless: false,
args: [ args: [
'--disable-gpu', '--disable-gpu',
'--disable-dev-shm-usage', '--disable-dev-shm-usage',
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.1.5", "@babel/runtime": "^7.1.5",
"antd": "^3.10.8", "antd": "^3.10.9",
"bizcharts": "^3.3.0", "bizcharts": "^3.4.0",
"bizcharts-plugin-slider": "^2.1.1-beta.1", "bizcharts-plugin-slider": "^2.1.1-beta.1",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"dva": "^2.4.0", "dva": "^2.4.0",
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"omit.js": "^1.0.0", "omit.js": "^1.0.0",
"path-to-regexp": "^2.4.0", "path-to-regexp": "^2.4.0",
"prop-types": "^15.5.10", "prop-types": "^15.5.10",
"qs": "^6.5.2", "qs": "^6.6.0",
"rc-animate": "^2.4.4", "rc-animate": "^2.4.4",
"react": "^16.5.1", "react": "^16.5.1",
"react-container-query": "^0.11.0", "react-container-query": "^0.11.0",
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
}, },
"devDependencies": { "devDependencies": {
"@antv/data-set": "^0.10.0", "@antv/data-set": "^0.10.0",
"@types/react": "^16.7.6", "@types/react": "^16.7.7",
"@types/react-dom": "^16.0.9", "@types/react-dom": "^16.0.10",
"antd-pro-merge-less": "^0.2.0", "antd-pro-merge-less": "^0.2.0",
"antd-theme-webpack-plugin": "^1.1.8", "antd-theme-webpack-plugin": "^1.1.8",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
...@@ -78,14 +78,14 @@ ...@@ -78,14 +78,14 @@
"eslint-plugin-markdown": "^1.0.0-beta.6", "eslint-plugin-markdown": "^1.0.0-beta.6",
"eslint-plugin-react": "^7.11.1", "eslint-plugin-react": "^7.11.1",
"gh-pages": "^2.0.1", "gh-pages": "^2.0.1",
"husky": "^1.1.2", "husky": "^1.2.0",
"jest-puppeteer": "^3.5.1", "jest-puppeteer": "^3.5.1",
"lint-staged": "^8.0.4", "lint-staged": "^8.1.0",
"merge-umi-mock-data": "^0.0.3", "merge-umi-mock-data": "^0.0.3",
"mockjs": "^1.0.1-beta3", "mockjs": "^1.0.1-beta3",
"prettier": "1.15.2", "prettier": "1.15.2",
"pro-download": "^1.0.1", "pro-download": "^1.0.1",
"stylelint": "^9.4.0", "stylelint": "^9.8.0",
"stylelint-config-prettier": "^4.0.0", "stylelint-config-prettier": "^4.0.0",
"stylelint-config-standard": "^18.0.0", "stylelint-config-standard": "^18.0.0",
"tslint": "^5.10.0", "tslint": "^5.10.0",
......
...@@ -12,9 +12,6 @@ function formatter(data) { ...@@ -12,9 +12,6 @@ function formatter(data) {
} }
describe('Homepage', () => { describe('Homepage', () => {
let browser;
let page;
const testPage = path => async () => { const testPage = path => async () => {
await page.goto(`${BASE_URL}${path}`); await page.goto(`${BASE_URL}${path}`);
await page.waitForSelector('footer', { await page.waitForSelector('footer', {
...@@ -32,6 +29,4 @@ describe('Homepage', () => { ...@@ -32,6 +29,4 @@ describe('Homepage', () => {
formatter(RouterConfig[0].routes).forEach(route => { formatter(RouterConfig[0].routes).forEach(route => {
fit(`test pages ${route}`, testPage(route)); fit(`test pages ${route}`, testPage(route));
}); });
afterAll(() => browser.close());
}); });
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment