The Mozilla site says:
var number = 123456.789;
console.log(new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' })
.format(number));
// expected output: "123.456,79 €"
But in my Jest unit test, I get as output € 123,456.79
which is not correct for fr-FR
locale according to me and Mozilla example.
I've tried to load polyfills and locale data, but it does not seem to resolve the issue
import 'intl';
import 'intl/locale-data/complete';
import 'intl/locale-data/jsonp/fr';
import 'intl/locale-data/jsonp/fr-FR';
import 'intl/dist/Intl.complete';
Any idea what could be wrong?