From 2f802fca46dfa4395bf59bfa410a15003a13010e Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Tue, 22 Nov 2022 16:58:31 +0800 Subject: [PATCH] chore: fix UI test Jest config --- packages/integration-tests/jest.config.ui.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/integration-tests/jest.config.ui.ts b/packages/integration-tests/jest.config.ui.ts index bab9d224e..81fd637df 100644 --- a/packages/integration-tests/jest.config.ui.ts +++ b/packages/integration-tests/jest.config.ui.ts @@ -1,7 +1,12 @@ import type { Config } from '@silverhand/jest-config'; import { merge } from '@silverhand/jest-config'; -// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires, unicorn/prefer-module -const config: Config.InitialOptions = merge(require('jest-puppeteer/jest-preset')); +const config: Config.InitialOptions = { + // Will treat as CJS + // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires, unicorn/prefer-module + ...merge(require('jest-puppeteer/jest-preset')), + // Will update common config soon + transformIgnorePatterns: ['node_modules/(?!(.*(nanoid|jose|ky|@logto))/)'], +}; export default config;