From 63261d7d88cef2bedab9df6b062025d016bb1f5a Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 22 Jul 2024 14:43:49 +0700 Subject: [PATCH] Updated vite config to allow sibling test files --- apps/admin-x-activitypub/vite.config.mjs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/admin-x-activitypub/vite.config.mjs b/apps/admin-x-activitypub/vite.config.mjs index ae5b996d87..2521075119 100644 --- a/apps/admin-x-activitypub/vite.config.mjs +++ b/apps/admin-x-activitypub/vite.config.mjs @@ -5,6 +5,14 @@ import {resolve} from 'path'; export default (function viteConfig() { return adminXViteConfig({ packageName: pkg.name, - entry: resolve(__dirname, 'src/index.tsx') + entry: resolve(__dirname, 'src/index.tsx'), + overrides: { + test: { + include: [ + './test/unit/**/*', + './src/**/*.test.ts' + ] + } + } }); });