1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/jest.config.js
Daniel 1b4bc46c7b
Swaps: Show a network name dynamically in a tooltip (#10882)
* Swaps: Show a network name dynamically in a tooltip

* Replace “Ethereum” with “$1”, change “Test” to “Testnet”

* Replace 이더리움 with $1

* Translate network names, use ‘Ethereum’ by default if a translation is not available yet

* Reorder messages to resolve ESLint issues

* Add a snapshot test for the FeeCard component, increase Jest threshold

* Enable snapshot testing into external .snap files in ESLint

* Add the “networkNameEthereum” key in ko/messages.json, remove default “Ethereum” value

* Throw an error if chain ID is not supported by the Swaps feature

* Use string literals when calling the `t` fn,
2021-04-16 19:22:32 -02:30

15 lines
317 B
JavaScript

module.exports = {
restoreMocks: true,
coverageDirectory: 'jest-coverage/',
coverageThreshold: {
global: {
branches: 6.94,
functions: 8.85,
lines: 11.76,
statements: 11.78,
},
},
setupFiles: ['./test/setup.js', './test/env.js'],
testMatch: ['**/ui/**/?(*.)+(test).js'],
};