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-16 16:31:01 +01:00
|
|
|
// SWC is not able to include the core-js polyfill for
|
2022-11-16 15:01:17 +01:00
|
|
|
// array/at automatically at the moment of writing, which
|
|
|
|
// makes some frontend tests fail on node@14.
|
|
|
|
require('core-js/actual/array/at');
|
|
|
|
|
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 });
|