grafana/plugins-bundled/internal/input-datasource/jest.config.js

19 lines
377 B
JavaScript

module.exports = {
testEnvironment: 'jest-environment-jsdom',
preset: 'ts-jest',
extensionsToTreatAsEsm: ['.ts'],
transform: {
'^.+\\.(t|j)sx?$': [
'ts-jest',
{
useESM: true,
isolatedModules: true,
allowJs: true,
},
],
},
moduleNameMapper: {
'^d3-interpolate$': '<rootDir>/__mocks__/d3-interpolate.ts',
},
};