Skip to content

Commit

Permalink
Adjust timeout and import node-fetch in create-toolpad-app test (#2414)…
Browse files Browse the repository at this point in the history
… (#2419)
  • Loading branch information
Kirera-Wainaina authored Aug 3, 2023
1 parent 853ddfb commit 7213c26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/create-toolpad-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"yargs": "17.7.2"
},
"devDependencies": {
"@types/inquirer": "9.0.3"
"@types/inquirer": "9.0.3",
"node-fetch": "2.6.12"
},
"gitHead": "c4bbeaeaf5c34b43fa52b31955b2c34f07700bc3"
}
3 changes: 2 additions & 1 deletion packages/create-toolpad-app/tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import { Readable } from 'stream';
import { execa, ExecaChildProcess } from 'execa';
import { jest } from '@jest/globals';
import { once } from 'events';
import fetch from 'node-fetch';

jest.setTimeout(60000);
jest.setTimeout(process.env.CI ? 60000 : 600000);

const currentDirectory = url.fileURLToPath(new URL('.', import.meta.url));

Expand Down

0 comments on commit 7213c26

Please sign in to comment.