13 lines
423 B
JavaScript
Raw Normal View History

'use strict';
// See https://github.com/swc-project/swc/issues/6460
2022-11-18 15:44:25 +01:00
// SWC is not able to include the core-js polyfill
// relieably, which causes flaky tests on node@14.
// On theory this should be solved by the `env` transform
// configuration of @swc/jest
require('core-js/actual');
const noop = () => {};
// eslint-disable-next-line no-undef
Object.defineProperty(window, 'scrollTo', { value: noop, writable: true });