From 8a8023338b01a8dc5d4949c79e0685f49444954b Mon Sep 17 00:00:00 2001 From: Ricardo Costa Date: Mon, 25 Mar 2024 17:09:51 +0000 Subject: [PATCH] Update jest.config.js --- code/server/.babelrc | 7 ++----- code/server/jest.config.js | 7 +++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/code/server/.babelrc b/code/server/.babelrc index c58af5b1..3313ff9e 100644 --- a/code/server/.babelrc +++ b/code/server/.babelrc @@ -1,6 +1,3 @@ { - "presets": [ - "@babel/preset-env", - "@babel/preset-typescript" - ] -} \ No newline at end of file + "presets": ["@babel/preset-env", "@babel/preset-typescript"] +} diff --git a/code/server/jest.config.js b/code/server/jest.config.js index 47cdc085..d89c26af 100644 --- a/code/server/jest.config.js +++ b/code/server/jest.config.js @@ -4,8 +4,7 @@ const { pathsToModuleNameMapper } = require('ts-jest'); module.exports = { preset: 'ts-jest', testEnvironment: 'node', - transform: { - '^.+\\.ts$': 'ts-jest', - }, + transform: {}, moduleNameMapper: pathsToModuleNameMapper({ '@src/*': ['./src/*'] }, { prefix: '/' }), -}; \ No newline at end of file + transformIgnorePatterns: ['/node_modules/(?!@notespace/shared).+\\.js$'], +};