From 90e78cc344ae050541a3bb83bf7dc7120fd20d19 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 1 Aug 2019 10:21:57 -0700 Subject: [PATCH] Use 10s timeout on Jest tests --- jest.config.js | 3 ++- jest.setup.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 jest.setup.js diff --git a/jest.config.js b/jest.config.js index 7e67792..ea77d67 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,5 +6,6 @@ module.exports = { 'getStats\\.js': '/modules/__mocks__/getStatsMock.js' }, testMatch: ['**/__tests__/*-test.js'], - testURL: 'http://localhost/' + testURL: 'http://localhost/', + setupTestFrameworkScriptFile: './jest.setup.js' }; diff --git a/jest.setup.js b/jest.setup.js new file mode 100644 index 0000000..b80d894 --- /dev/null +++ b/jest.setup.js @@ -0,0 +1,4 @@ +// TODO: Mock out the registry so tests don't actually hit +// the real registry so they don't take so long. Then we can +// remove this. +jest.setTimeout(10000);