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);