When testing an IntL money conversion inside Jest, I don't get the correct conversion.
My test:
expect(new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(50.00)).toBe('R$ 50,00');
// Expected value to be:
// "R$ 50,00"
// Received:
// "R$ 50.00"
My command:
jest --config test/unit/jest.conf.js
How can I set the correct locale configuration to Jest?