diff --git a/src/__mocks__/dummy-transformer.js b/src/__mocks__/dummy-transformer.js index e84abdace0..c3a3976f88 100644 --- a/src/__mocks__/dummy-transformer.js +++ b/src/__mocks__/dummy-transformer.js @@ -3,6 +3,8 @@ const { LogContexts, LogLevels } = require('bs-logger') function factory(cs) { const logger = cs.logger.child({ namespace: 'dummy-transformer' }) const ts = cs.compilerModule + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const program = cs.tsCompiler.program function createVisitor(_ctx, _) { return (node) => node diff --git a/src/config/config-set.ts b/src/config/config-set.ts index b45e1f1556..e8efc82cb0 100644 --- a/src/config/config-set.ts +++ b/src/config/config-set.ts @@ -190,8 +190,6 @@ export class ConfigSet { this.logger.debug({ compilerModule: this.compilerModule }, 'normalized compiler module config via ts-jest option') this._backportJestCfg() - this._setupTsJestCfg(options) - this._resolveTsCacheDir() this._matchablePatterns = [...this._jestCfg.testMatch, ...this._jestCfg.testRegex].filter( (pattern) => /** @@ -206,6 +204,8 @@ export class ConfigSet { this._matchTestFilePath = globsToMatcher( this._matchablePatterns.filter((pattern: any) => typeof pattern === 'string') as string[], ) + this._setupTsJestCfg(options) + this._resolveTsCacheDir() } /**