You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/01/19 00:05:54 UTC
(superset) 01/01: fix(tests): exclude compiled esm/lib directories from jest
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch chore/ts-migration-sqllab-explore
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 6fc8b2cef9202e03fbe05043f6a9f31edc38ea61
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Sun Jan 18 16:05:37 2026 -0800
fix(tests): exclude compiled esm/lib directories from jest
Add modulePathIgnorePatterns to exclude compiled output directories
(esm/ and lib/) in packages and plugins from being tested by jest.
These directories contain transpiled build artifacts that have issues
with _jsx references in jest.mock() calls.
Co-Authored-By: Claude Opus 4.5 <no...@anthropic.com>
---
superset-frontend/jest.config.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/jest.config.js b/superset-frontend/jest.config.js
index ca8c56ee12..75634bd915 100644
--- a/superset-frontend/jest.config.js
+++ b/superset-frontend/jest.config.js
@@ -36,7 +36,13 @@ module.exports = {
'^@apache-superset/core/(.*)$': '<rootDir>/packages/superset-core/src/$1',
},
testEnvironment: '<rootDir>/spec/helpers/jsDomWithFetchAPI.ts',
- modulePathIgnorePatterns: ['<rootDir>/packages/generator-superset'],
+ modulePathIgnorePatterns: [
+ '<rootDir>/packages/generator-superset',
+ '<rootDir>/packages/.*/esm',
+ '<rootDir>/packages/.*/lib',
+ '<rootDir>/plugins/.*/esm',
+ '<rootDir>/plugins/.*/lib',
+ ],
setupFilesAfterEnv: ['<rootDir>/spec/helpers/setup.ts'],
snapshotSerializers: ['@emotion/jest/serializer'],
testEnvironmentOptions: {