mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
92a16d2e10
* Transforms: Adds beta notice and updates transform descriptions * Rename organize fields * Webpack - enable images import * Introduce FeatureState type * Alow Container component grow/shrink config * Enable svg import in main app * Jest + webpack for svgs * InfoBox refactor (+ added feature info box), Badge component introduced * Update packages/grafana-ui/src/components/TransformersUI/FilterByNameTransformerEditor.tsx Co-authored-by: Carl Bergquist <carl@grafana.com> * Minor fixes * Update packages/grafana-ui/src/components/TransformersUI/OrganizeFieldsTransformerEditor.tsx Co-authored-by: Carl Bergquist <carl@grafana.com> * Update packages/grafana-ui/src/components/TransformersUI/SeriesToFieldsTransformerEditor.tsx Co-authored-by: Carl Bergquist <carl@grafana.com> * fix typo * Build storybook fixed * Fix padding Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Carl Bergquist <carl@grafana.com>
21 lines
794 B
JavaScript
21 lines
794 B
JavaScript
const esModule = '@iconscout/react-unicons';
|
|
|
|
module.exports = {
|
|
verbose: false,
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx)$': 'ts-jest',
|
|
[`(${esModule}).+\\.js$`]: 'babel-jest',
|
|
},
|
|
transformIgnorePatterns: [`/node_modules/(?!${esModule})`],
|
|
moduleDirectories: ['node_modules', 'public'],
|
|
roots: ['<rootDir>/public/app', '<rootDir>/public/test', '<rootDir>/packages', '<rootDir>/scripts'],
|
|
testRegex: '(\\.|/)(test)\\.(jsx?|tsx?)$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
|
|
setupFiles: ['jest-canvas-mock', './public/test/jest-shim.ts', './public/test/jest-setup.ts'],
|
|
snapshotSerializers: ['enzyme-to-json/serializer'],
|
|
globals: { 'ts-jest': { isolatedModules: true } },
|
|
moduleNameMapper: {
|
|
'\\.svg': '<rootDir>/public/test/mocks/svg.ts',
|
|
},
|
|
};
|