I would like to test a filter function I wrote which return a date formatted using Intl.DateTimeFormat(\'en-GB\', options):
// module \"date.js\" export default
You can use polyfill, as described here
import IntlPolyfill from 'intl'; import 'intl/locale-data/jsonp/ru'; if (global.Intl) { Intl.NumberFormat = IntlPolyfill.NumberFormat; Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat; } else { global.Intl = IntlPolyfill; }