mirror of
https://github.com/luxfi/extension.git
synced 2026-10-30 16:56:33 +00:00
- Multi-chain wallet for Lux ecosystem (Lux, Zoo, SPC, Hanzo networks) - Support for external EVM chains (Ethereum, Arbitrum, Base, etc.) - WXT-based build system for Chrome and Firefox - Ledger hardware wallet integration - Security engine for transaction risk analysis - Address book and custom networks support
67 lines
1.3 KiB
JavaScript
67 lines
1.3 KiB
JavaScript
const preset = require('../../config/jest-presets/jest/jest-preset')
|
|
|
|
const fileExtensions = [
|
|
'eot',
|
|
'gif',
|
|
'jpeg',
|
|
'jpg',
|
|
'otf',
|
|
'png',
|
|
'ttf',
|
|
'woff',
|
|
'woff2',
|
|
'mp4',
|
|
]
|
|
|
|
module.exports = {
|
|
...preset,
|
|
preset: 'jest-expo',
|
|
transform: {
|
|
'^.+\\.(t|j)sx?$': [
|
|
'babel-jest',
|
|
{
|
|
configFile: './src/test/babel.config.js',
|
|
}
|
|
],
|
|
},
|
|
moduleNameMapper: {
|
|
...preset.moduleNameMapper,
|
|
'^react-native$': 'react-native-web',
|
|
},
|
|
moduleFileExtensions: [
|
|
'web.js',
|
|
'web.jsx',
|
|
'web.ts',
|
|
'web.tsx',
|
|
...fileExtensions,
|
|
...preset.moduleFileExtensions,
|
|
],
|
|
resolver: "<rootDir>/src/test/jest-resolver.js",
|
|
displayName: 'Extension Wallet',
|
|
testMatch: [
|
|
'<rootDir>/src/**/*.(spec|test).[jt]s?(x)',
|
|
'<rootDir>/config/**/*.(spec|test).[jt]s?(x)',
|
|
],
|
|
testPathIgnorePatterns: [
|
|
...preset.testPathIgnorePatterns,
|
|
'<rootDir>/e2e/',
|
|
],
|
|
collectCoverageFrom: [
|
|
'src/app/**/*.{js,ts,tsx}',
|
|
'src/background/**/*.{js,ts,tsx}',
|
|
'src/contentScript/**/*.{js,ts,tsx}',
|
|
'config/**/*.{js,ts,tsx}',
|
|
'!src/**/*.stories.**',
|
|
'!**/node_modules/**',
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
lines: 0,
|
|
},
|
|
},
|
|
setupFiles: [
|
|
'../../config/jest-presets/jest/setup.js',
|
|
'./jest-setup.js',
|
|
],
|
|
}
|