From 63a13aa70b656b7add1b846fb6326a886dc501c6 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 15 Jul 2020 18:53:59 +0200 Subject: [PATCH] cli: be more opinionated about what test files look like --- packages/cli/config/jest.js | 3 +++ 1 file changed, 3 insertions(+) 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: [