Set test timeout to 10s for all tests because platform 11.2.0 is slower to test

This commit is contained in:
Wouter Samaey 2022-01-04 10:02:21 +01:00
parent 3228e38b64
commit 4a42fa64d1
2 changed files with 5 additions and 3 deletions

5
jest.config.js Normal file
View File

@ -0,0 +1,5 @@
const {defaults} = require('jest-config');
module.exports = {
//moduleFileExtensions: [...defaults.moduleFileExtensions, 'ts', 'tsx'],
testTimeout: 10000
};

View File

@ -5,9 +5,6 @@ const appTester = zapier.createAppTester(App);
zapier.tools.env.inject();
describe('creates.invoice', () => {
jest.setTimeout(7000);
test(App.creates.CreateInvoice.key, async () => {
const amount = 1 + Math.floor(Math.random() * 100);
const currencyCode = 'EUR';