From e517bf5c12ade932f5cf5455c6d4c8bc32df697f Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Wed, 1 Nov 2023 11:56:17 +0100 Subject: [PATCH] feat: ignore playwright folder in jest config --- config/jest.config.template.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/jest.config.template.js b/config/jest.config.template.js index 6988cd5..3e0fce7 100644 --- a/config/jest.config.template.js +++ b/config/jest.config.template.js @@ -3,10 +3,7 @@ const pluginsNotToTransform = [ 'd3v3', ].join('|'); -/** - * TODO check if we can process inline webpack loaders (e.g. as found in https://github.com/phovea/phovea_ui/blob/master/src/_bootstrap.ts) - * see also https://jestjs.io/docs/en/webpack#mocking-css-modules - */ +/** @type {import('jest').Config} */ module.exports = { testEnvironment: 'jsdom', transform: { @@ -22,6 +19,8 @@ module.exports = { '\\.xml$': 'jest-raw-loader', }, testRegex: '(.*(test|spec))\\.(tsx?)$', + testPathIgnorePatterns: ['playwright'], + coveragePathIgnorePatterns: ['playwright'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], modulePaths: ['src'], resolver: 'visyn_scripts/config/jest_export_maps_resolver.js',