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

add verification devDependencies

parent 9416cd7d
/functions/mock
/tests/*
./*
\ No newline at end of file
......@@ -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,
......
// ps https://github.com/GoogleChrome/puppeteer/issues/3120
module.exports = {
launch: {
headless: false,
args: [
'--disable-gpu',
'--disable-dev-shm-usage',
......
......@@ -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', {
......@@ -32,6 +29,4 @@ describe('Homepage', () => {
formatter(RouterConfig[0].routes).forEach(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