12 lines
401 B
JavaScript
Raw Normal View History

'use strict';
// 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
// array/at automatically at the moment of writing, which
// makes some frontend tests fail on node@14.
require('core-js/actual/array/at');
const noop = () => {};
// eslint-disable-next-line no-undef
Object.defineProperty(window, 'scrollTo', { value: noop, writable: true });