diff --git a/tests/javascripts/activityChart.test.js b/tests/javascripts/activityChart.test.js index 4e0393e7e..3d0087ec1 100644 --- a/tests/javascripts/activityChart.test.js +++ b/tests/javascripts/activityChart.test.js @@ -18,6 +18,12 @@ Object.defineProperty(HTMLElement.prototype, 'clientWidth', { }); // beforeAll hook to set up the DOM and load D3.js script +beforeAll(() => { + jest.spyOn(Intl, 'DateTimeFormat').mockImplementation(() => ({ + resolvedOptions: () => ({ timeZone: 'UTC' }) + })); +}); + beforeAll(done => { // Set up the DOM with the D3 script included document.body.innerHTML = `