mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
increase timeout
This commit is contained in:
parent
427817fb1b
commit
4ce36d2680
@ -20,4 +20,5 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
preset: 'jest-puppeteer',
|
preset: 'jest-puppeteer',
|
||||||
|
testTimeout: 10000,
|
||||||
};
|
};
|
||||||
|
@ -11,6 +11,7 @@ services:
|
|||||||
- './jest-stare:/app/jest-stare'
|
- './jest-stare:/app/jest-stare'
|
||||||
- './dist:/app/dist'
|
- './dist:/app/dist'
|
||||||
- '.jest.image.js:/app/.jest.image.js'
|
- '.jest.image.js:/app/.jest.image.js'
|
||||||
|
- './jest-puppeteer.config.js:/app/jest-puppeteer.config.js'
|
||||||
- './imageSnapshots:/app/imageSnapshots'
|
- './imageSnapshots:/app/imageSnapshots'
|
||||||
- './imageDiffSnapshots:/app/imageDiffSnapshots'
|
- './imageDiffSnapshots:/app/imageDiffSnapshots'
|
||||||
entrypoint: "jest --config .jest.image.js --no-cache -i"
|
entrypoint: "jest --config .jest.image.js --no-cache -i"
|
||||||
|
@ -10,6 +10,4 @@ module.exports = {
|
|||||||
'--disable-dev-shm-usage',
|
'--disable-dev-shm-usage',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
browser: 'chromium',
|
|
||||||
browserContext: 'default',
|
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,6 @@ expect.extend({ toMatchImageSnapshot });
|
|||||||
|
|
||||||
// eslint-disable-next-line jest/no-export
|
// eslint-disable-next-line jest/no-export
|
||||||
export default function imageTest(component: React.ReactElement) {
|
export default function imageTest(component: React.ReactElement) {
|
||||||
describe(`Image test`, () => {
|
|
||||||
it('component image screenshot should correct', async () => {
|
it('component image screenshot should correct', async () => {
|
||||||
MockDate.set(moment('2016-11-22').valueOf());
|
MockDate.set(moment('2016-11-22').valueOf());
|
||||||
await page.goto(`file://${process.cwd()}/tests/index.html`);
|
await page.goto(`file://${process.cwd()}/tests/index.html`);
|
||||||
@ -32,7 +31,6 @@ export default function imageTest(component: React.ReactElement) {
|
|||||||
|
|
||||||
MockDate.reset();
|
MockDate.reset();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Options = {
|
type Options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user