diff --git a/packages/cli/config/jest.js b/packages/cli/config/jest.js index 80e0bcf26c..4ad8106ab4 100644 --- a/packages/cli/config/jest.js +++ b/packages/cli/config/jest.js @@ -43,6 +43,9 @@ async function getConfig() { ), }, + // A bit more opinionated + testMatch: ['**/?(*.)test.{js,jsx,mjs,ts,tsx}'], + // Default behaviour is to not apply transforms for node_modules, but we still want // to apply the esm-transformer to .esm.js files, since that's what we use in backstage packages. transformIgnorePatterns: [