During my testing of an IntL money conversion in Jest, I encountered an issue with getting the correct conversion.
This is 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"
This is my command:
jest --config test/unit/jest.conf.js
How can I properly configure the locale setting for Jest?