From cb57e59459e3747d4a587bdbe995323cdabd7645 Mon Sep 17 00:00:00 2001 From: Berend Sliedrecht <berend@animo.id> Date: Mon, 27 Nov 2023 12:24:10 +0100 Subject: [PATCH] fix: also allow js files for swc and jest Signed-off-by: Berend Sliedrecht <berend@animo.id> --- apps/attestation-manager/jest.config.js | 2 +- apps/connection-manager/jest.config.js | 2 +- apps/proof-manager/jest.config.js | 2 +- apps/shared/jest.config.js | 2 +- apps/ssi-abstraction/jest.config.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/attestation-manager/jest.config.js b/apps/attestation-manager/jest.config.js index d8d3f8c..5ece9fc 100644 --- a/apps/attestation-manager/jest.config.js +++ b/apps/attestation-manager/jest.config.js @@ -7,7 +7,7 @@ export default { moduleFileExtensions: ['js', 'ts'], testEnvironment: 'node', transform: { - '^.+\\.ts$': [ + '^.+\\.(js|ts)$': [ '@swc/jest', { ...swcConfig, diff --git a/apps/connection-manager/jest.config.js b/apps/connection-manager/jest.config.js index d8d3f8c..5ece9fc 100644 --- a/apps/connection-manager/jest.config.js +++ b/apps/connection-manager/jest.config.js @@ -7,7 +7,7 @@ export default { moduleFileExtensions: ['js', 'ts'], testEnvironment: 'node', transform: { - '^.+\\.ts$': [ + '^.+\\.(js|ts)$': [ '@swc/jest', { ...swcConfig, diff --git a/apps/proof-manager/jest.config.js b/apps/proof-manager/jest.config.js index d8d3f8c..c4d3f93 100644 --- a/apps/proof-manager/jest.config.js +++ b/apps/proof-manager/jest.config.js @@ -7,7 +7,7 @@ export default { moduleFileExtensions: ['js', 'ts'], testEnvironment: 'node', transform: { - '^.+\\.ts$': [ + '^.+\\.(ts|js)$': [ '@swc/jest', { ...swcConfig, diff --git a/apps/shared/jest.config.js b/apps/shared/jest.config.js index d8d3f8c..c4d3f93 100644 --- a/apps/shared/jest.config.js +++ b/apps/shared/jest.config.js @@ -7,7 +7,7 @@ export default { moduleFileExtensions: ['js', 'ts'], testEnvironment: 'node', transform: { - '^.+\\.ts$': [ + '^.+\\.(ts|js)$': [ '@swc/jest', { ...swcConfig, diff --git a/apps/ssi-abstraction/jest.config.js b/apps/ssi-abstraction/jest.config.js index d8d3f8c..5ece9fc 100644 --- a/apps/ssi-abstraction/jest.config.js +++ b/apps/ssi-abstraction/jest.config.js @@ -7,7 +7,7 @@ export default { moduleFileExtensions: ['js', 'ts'], testEnvironment: 'node', transform: { - '^.+\\.ts$': [ + '^.+\\.(js|ts)$': [ '@swc/jest', { ...swcConfig, -- GitLab