From 93bf9e042d40807e0ce05c054efe13e800b5a3f1 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Mon, 21 Aug 2023 16:36:47 +1000 Subject: [PATCH] feat(@dpc-sdp/nuxt-ripple-cli): update jest config to fix unit tests in layers running nuxt 3.6+ --- .../commands/init/_templates/layer/latest/jest.config.js.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/jest.config.js.t b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/jest.config.js.t index a40cda11fd..8c45822a13 100644 --- a/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/jest.config.js.t +++ b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/jest.config.js.t @@ -9,7 +9,7 @@ export default { testRegex: '.*.test.(j|t)s[x]?$', transform: { '^.+\\.ts$': ['/node_modules/ts-jest'], - '^.+\\.js$': '/node_modules/babel-jest' + '^.+\\.[m]?js$': '/node_modules/babel-jest' }, - transformIgnorePatterns: ['/node_modules/(?!(lodash|@dpc-sdp/.*))'] + transformIgnorePatterns: ['/node_modules/(?!(uncrypto|lodash|@dpc-sdp/.*))'] }