/* * ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️ * * In order to extend the configuration follow the steps in .config/README.md */ module.exports = { testEnvironment: 'jest-environment-jsdom', testMatch: [ '/src/**/__tests__/**/*.{js,jsx,ts,tsx}', '/src/**/*.{spec,test,jest}.{js,jsx,ts,tsx}', '/src/**/*.{spec,test,jest}.{js,jsx,ts,tsx}', ], transform: { '^.+\\.(t|j)sx?$': [ '@swc/jest', { sourceMaps: true, jsc: { parser: { syntax: 'typescript', tsx: true, decorators: false, dynamicImport: true, }, }, }, ], }, setupFilesAfterEnv: ['/jest-setup.js'], };