From d6b6cc3d74f841cfc99f79f928aa8ced310244b6 Mon Sep 17 00:00:00 2001 From: Boegie19 Date: Wed, 26 Apr 2023 13:09:24 +0200 Subject: [PATCH] fix front --- jest-preset.front.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jest-preset.front.js b/jest-preset.front.js index 37dac4fc8d..ecd061c335 100644 --- a/jest-preset.front.js +++ b/jest-preset.front.js @@ -30,7 +30,7 @@ const moduleNameMapper = { module.exports = { rootDir: __dirname, moduleNameMapper, - testPathIgnorePatterns: ['/node_modules/', '__tests__'], + testPathIgnorePatterns: ['node_modules/', '__tests__'], globalSetup: '@strapi/admin-test-utils/global-setup', setupFiles: ['@strapi/admin-test-utils/environment'], setupFilesAfterEnv: ['@strapi/admin-test-utils/after-env'], @@ -60,7 +60,7 @@ module.exports = { transformIgnorePatterns: [ 'node_modules/(?!(react-dnd|dnd-core|react-dnd-html5-backend|@strapi/design-system|@strapi/icons|fractional-indexing)/)', ], - testMatch: ['/**/tests/**/?(*.)+(spec|test).[jt]s?(x)'], + testMatch: ['**/tests/**/?(*.)+(spec|test).[jt]s?(x)'], testEnvironmentOptions: { url: 'http://localhost:1337/admin', },