diff --git a/packages/dashboard-backend/jest.config.js b/packages/dashboard-backend/jest.config.js index c5bbd513f..f2f5e2070 100644 --- a/packages/dashboard-backend/jest.config.js +++ b/packages/dashboard-backend/jest.config.js @@ -21,14 +21,7 @@ module.exports = { moduleNameMapper: { // mapping for absolute imports (see tsconfig.json) '^@/(.*)$': '/src/$1', - - // not everything we need is exported from the package - // so we need to alias the rest - '@devfile/api/(.*)$': '/../../node_modules/@devfile/api/$1.ts', }, - transformIgnorePatterns: [ - 'node_modules/(?!@devfile/api)', - ], collectCoverageFrom: [ ...base.collectCoverageFrom, diff --git a/packages/dashboard-backend/webpack.config.common.js b/packages/dashboard-backend/webpack.config.common.js index 3ddfcafcf..94548edc2 100644 --- a/packages/dashboard-backend/webpack.config.common.js +++ b/packages/dashboard-backend/webpack.config.common.js @@ -44,10 +44,6 @@ module.exports = () => { alias: { // alias for absolute imports (see tsconfig.json) '@': path.resolve(__dirname, 'src/'), - - // not everything we need is exported from the package - // so we need to alias the rest - '@devfile/api/api': path.resolve(__dirname, '../../node_modules/@devfile/api/api.ts'), }, }, resolveLoader: {},