Skip to content

Commit

Permalink
chore(examples): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Oct 21, 2024
1 parent 34cff6a commit 2434cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/multi-brand-identity/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
moduleDirectories: ['node_modules', 'test-configs', __dirname],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
moduleNameMapper: {
'@oxygen-ui/react': '<rootDir>/node_modules/@oxygen-ui/react',
'\\.(css|less|sass|scss)$': '<rootDir>/test-configs/__mocks__/style-mock.ts',
'^@unit-testing(.*)$': '<rootDir>/test-configs/utils',
},
Expand All @@ -35,6 +36,6 @@ module.exports = {
'^.+\\.(js|jsx)?$': 'babel-jest',
'^.+\\.(ts|tsx)?$': 'ts-jest',
},
transformIgnorePatterns: ['/node_modules/?(?!@wso2)'],
transformIgnorePatterns: ['/node_modules/?(?!@wso2)', '/node_modules/(?!@oxygen-ui/react/)'],
verbose: true,
};

0 comments on commit 2434cba

Please sign in to comment.