From 9f651fee7e6e017be45715cf9599a141b4b4f769 Mon Sep 17 00:00:00 2001 From: Matt Gallo Date: Mon, 13 Jan 2025 01:04:42 -0500 Subject: [PATCH] refactor(jest): support ts/tsx test files (#6684) --- config/jest-config-ibm-cloud-cognitive/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/jest-config-ibm-cloud-cognitive/index.js b/config/jest-config-ibm-cloud-cognitive/index.js index f85b56be75..0bd2e5f3b4 100644 --- a/config/jest-config-ibm-cloud-cognitive/index.js +++ b/config/jest-config-ibm-cloud-cognitive/index.js @@ -33,9 +33,9 @@ module.exports = { setupFiles: [require.resolve('./setup/setupFiles.js')], setupFilesAfterEnv: [require.resolve('./setup/setupFilesAfterEnv.js')], testMatch: [ - '/**/__tests__/**/*.js?(x)', - '/**/*.(spec|test).js?(x)', - '/**/*-(spec|test).js?(x)', + '/**/__tests__/**/*.(js|jsx|ts|tsx)?(x)', + '/**/*.(spec|test).(js|jsx|ts|tsx)?(x)', + '/**/*-(spec|test).(js|jsx|ts|tsx)?(x)', ], transform: { '^.+\\.(mjs|cjs|js|jsx|ts|tsx)$': require.resolve(