mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* Exclude Android from license headers * fixes * fix formatting * fix command * fix license space * updates * fix headers * updates * new line formatting
25 lines
1.1 KiB
JavaScript
25 lines
1.1 KiB
JavaScript
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
|
|
|
|
module.exports = {
|
|
preset: 'react-native',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(react-native|@react-native|@react-navigation|@react-native-community|@segment/analytics-react-native|@openpassport|react-native-keychain|react-native-check-version|react-native-nfc-manager|react-native-passport-reader|react-native-gesture-handler|uuid|@stablelib|@react-native-google-signin|react-native-cloud-storage|@react-native-clipboard|@react-native-firebase)/)',
|
|
],
|
|
setupFiles: ['<rootDir>/jest.setup.js'],
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
|
|
moduleNameMapper: {
|
|
'^@env$': '<rootDir>/tests/__setup__/@env.js',
|
|
'\\.svg$': '<rootDir>/tests/__setup__/svgMock.js',
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^@$': '<rootDir>/src',
|
|
'^@tests/(.*)$': '<rootDir>/tests/src/$1',
|
|
'^@tests$': '<rootDir>/tests/src',
|
|
},
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: 'tsconfig.test.json',
|
|
},
|
|
},
|
|
};
|