mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
fix(test): manually increase timeout to avoid document being closed early
This commit is contained in:
parent
e84eb506b8
commit
cbad2f0acf
@ -25,6 +25,21 @@ const App = (
|
||||
);
|
||||
|
||||
describe('<ColorPickerInput />', () => {
|
||||
/**
|
||||
* We do this because –
|
||||
* https://github.com/facebook/jest/issues/12670
|
||||
*/
|
||||
beforeAll(() => {
|
||||
jest.setTimeout(30000);
|
||||
});
|
||||
|
||||
/**
|
||||
* Reset timeout to what is expected
|
||||
*/
|
||||
afterAll(() => {
|
||||
jest.setTimeout(5000);
|
||||
});
|
||||
|
||||
it('renders and matches the snapshot', () => {
|
||||
const { container } = render(App);
|
||||
|
||||
|
||||
@ -3,6 +3,8 @@
|
||||
const baseConfig = require('../../../jest.base-config.front');
|
||||
const pkg = require('./package.json');
|
||||
|
||||
console.log('BASE', baseConfig);
|
||||
|
||||
module.exports = {
|
||||
...baseConfig,
|
||||
displayName: (pkg.strapi && pkg.strapi.name) || pkg.name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user