From 18aefa095c9b26582d5007bf843bebf26ce3f2ba Mon Sep 17 00:00:00 2001 From: Igor Lukanin Date: Wed, 5 Aug 2026 20:04:42 +0200 Subject: [PATCH] fix(core): declare the dist-only test target in six remaining jest configs --- packages/cubejs-backend-maven/jest.config.js | 5 +++++ packages/cubejs-bigquery-driver/jest.config.js | 5 +++++ packages/cubejs-databricks-jdbc-driver/jest.config.js | 5 +++++ packages/cubejs-druid-driver/jest.config.js | 5 +++++ packages/cubejs-duckdb-driver/jest.config.js | 5 +++++ packages/cubejs-mysql-driver/jest.config.js | 5 +++++ 6 files changed, 30 insertions(+) diff --git a/packages/cubejs-backend-maven/jest.config.js b/packages/cubejs-backend-maven/jest.config.js index 4611f9c2f14da..1d24a7d898198 100644 --- a/packages/cubejs-backend-maven/jest.config.js +++ b/packages/cubejs-backend-maven/jest.config.js @@ -4,4 +4,9 @@ const base = require('../../jest.base.config'); module.exports = { ...base, rootDir: '.', + // Suites run from the compiled output — the sources under test/ have no + // transform and cannot execute. + testMatch: [ + '/dist/test/**/*.{test,spec}.{ts,js}' + ], }; diff --git a/packages/cubejs-bigquery-driver/jest.config.js b/packages/cubejs-bigquery-driver/jest.config.js index 4611f9c2f14da..1d24a7d898198 100644 --- a/packages/cubejs-bigquery-driver/jest.config.js +++ b/packages/cubejs-bigquery-driver/jest.config.js @@ -4,4 +4,9 @@ const base = require('../../jest.base.config'); module.exports = { ...base, rootDir: '.', + // Suites run from the compiled output — the sources under test/ have no + // transform and cannot execute. + testMatch: [ + '/dist/test/**/*.{test,spec}.{ts,js}' + ], }; diff --git a/packages/cubejs-databricks-jdbc-driver/jest.config.js b/packages/cubejs-databricks-jdbc-driver/jest.config.js index 4611f9c2f14da..1d24a7d898198 100644 --- a/packages/cubejs-databricks-jdbc-driver/jest.config.js +++ b/packages/cubejs-databricks-jdbc-driver/jest.config.js @@ -4,4 +4,9 @@ const base = require('../../jest.base.config'); module.exports = { ...base, rootDir: '.', + // Suites run from the compiled output — the sources under test/ have no + // transform and cannot execute. + testMatch: [ + '/dist/test/**/*.{test,spec}.{ts,js}' + ], }; diff --git a/packages/cubejs-druid-driver/jest.config.js b/packages/cubejs-druid-driver/jest.config.js index 4d37512e596ae..2f1efbe77a122 100644 --- a/packages/cubejs-druid-driver/jest.config.js +++ b/packages/cubejs-druid-driver/jest.config.js @@ -4,6 +4,11 @@ const base = require('../../jest.base.config'); module.exports = { ...base, rootDir: '.', + // Suites run from the compiled output — the sources under test/ have no + // transform and cannot execute. + testMatch: [ + '/dist/test/**/*.{test,spec}.{ts,js}' + ], transformIgnorePatterns: [ 'node_modules/(?!axios)/' ], diff --git a/packages/cubejs-duckdb-driver/jest.config.js b/packages/cubejs-duckdb-driver/jest.config.js index 4611f9c2f14da..1d24a7d898198 100644 --- a/packages/cubejs-duckdb-driver/jest.config.js +++ b/packages/cubejs-duckdb-driver/jest.config.js @@ -4,4 +4,9 @@ const base = require('../../jest.base.config'); module.exports = { ...base, rootDir: '.', + // Suites run from the compiled output — the sources under test/ have no + // transform and cannot execute. + testMatch: [ + '/dist/test/**/*.{test,spec}.{ts,js}' + ], }; diff --git a/packages/cubejs-mysql-driver/jest.config.js b/packages/cubejs-mysql-driver/jest.config.js index 4611f9c2f14da..1d24a7d898198 100644 --- a/packages/cubejs-mysql-driver/jest.config.js +++ b/packages/cubejs-mysql-driver/jest.config.js @@ -4,4 +4,9 @@ const base = require('../../jest.base.config'); module.exports = { ...base, rootDir: '.', + // Suites run from the compiled output — the sources under test/ have no + // transform and cannot execute. + testMatch: [ + '/dist/test/**/*.{test,spec}.{ts,js}' + ], };