mirror of
https://github.com/luxfi/wallet.git
synced 2026-07-27 03:37:41 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
40 lines
1.2 KiB
JavaScript
40 lines
1.2 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'],
|
|
}
|