2021-10-04 11:54:39 +02:00
|
|
|
'use strict';
|
|
|
|
|
2022-11-16 15:01:17 +01:00
|
|
|
// 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');
|
2022-11-16 15:01:17 +01:00
|
|
|
|
2021-09-10 08:22:44 +02:00
|
|
|
const noop = () => {};
|
2021-10-04 11:54:39 +02:00
|
|
|
// eslint-disable-next-line no-undef
|
2021-09-10 08:22:44 +02:00
|
|
|
Object.defineProperty(window, 'scrollTo', { value: noop, writable: true });
|