29 lines
814 B
TypeScript
29 lines
814 B
TypeScript
/* eslint-disable */
|
|
export default {
|
|
displayName: 'market-depth',
|
|
preset: '../../jest.preset.js',
|
|
transform: {
|
|
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
|
|
'^.+\\.[tj]sx?$': [
|
|
'babel-jest',
|
|
{
|
|
presets: ['@nx/react/babel'],
|
|
// required for pennant to work in jest, due to having untranspiled exports
|
|
plugins: [
|
|
[
|
|
'@babel/plugin-proposal-private-methods',
|
|
{
|
|
loose: true,
|
|
},
|
|
],
|
|
],
|
|
},
|
|
],
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
coverageDirectory: '../../coverage/libs/market-depth',
|
|
setupFilesAfterEnv: ['./src/setup-tests.ts'],
|
|
// dont ignore pennant from transpilation
|
|
transformIgnorePatterns: ['<rootDir>/node_modules/pennant'],
|
|
};
|