From 380681310dc0dfe053517270a467a70c98ada23b Mon Sep 17 00:00:00 2001 From: Viorel Cojocaru Date: Sat, 20 Jul 2024 15:08:58 +0200 Subject: [PATCH] build(validate): Jest ts config --- packages/plugin-webpack-validate/jest.config.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/plugin-webpack-validate/jest.config.js b/packages/plugin-webpack-validate/jest.config.js index 779c699412..b14586b6c9 100644 --- a/packages/plugin-webpack-validate/jest.config.js +++ b/packages/plugin-webpack-validate/jest.config.js @@ -1,11 +1,13 @@ module.exports = { preset: 'ts-jest/presets/js-with-ts', testEnvironment: 'node', - testPathIgnorePatterns: [ - '/__fixtures__/', - '/node_modules/', - '/lib/', - '/lib-esm/', - '/types/', - ], + testPathIgnorePatterns: ['/__fixtures__/', '/node_modules/', '/lib/', '/lib-esm/', '/types/'], + transform: { + '.*.ts$': [ + 'ts-jest', + { + tsConfig: 'tsconfig.lib.json', + }, + ], + }, };