vega-frontend-monorepo/libs/candles-chart/jest.config.ts
2023-08-07 11:06:49 +01:00

29 lines
816 B
TypeScript

/* eslint-disable */
export default {
displayName: 'candles-chart',
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/candles-chart',
setupFilesAfterEnv: ['./src/setup-tests.ts'],
// dont ignore pennant from transpilation
transformIgnorePatterns: ['<rootDir>/node_modules/pennant'],
};