mirror of
https://github.com/mudita/mudita-center.git
synced 2025-12-23 22:28:03 -05:00
[CP-2898] fix tests in device-protocol
This commit is contained in:
committed by
Łukasz Kowalczyk
parent
9e862168b4
commit
9e0e75a075
@@ -11,5 +11,7 @@ module.exports = {
|
||||
...nxPreset.moduleNameMapper,
|
||||
"App/(.*)": `${__dirname}/apps/mudita-center/src/$1`,
|
||||
"Core/(.*)": `${__dirname}/libs/core/$1`,
|
||||
"p-queue$": `${__dirname}/__mocks__/p-queue.ts`,
|
||||
},
|
||||
setupFilesAfterEnv: [`${__dirname}/jest.setup.js`],
|
||||
}
|
||||
|
||||
6
jest.setup.js
Normal file
6
jest.setup.js
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Copyright (c) Mudita sp. z o.o. All rights reserved.
|
||||
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
|
||||
*/
|
||||
|
||||
require("reflect-metadata")
|
||||
@@ -19,6 +19,7 @@ module.exports = {
|
||||
"Core/(.*)": "<rootDir>/libs/core/$1",
|
||||
"Cypress/(.*)": "<rootDir>/apps/mudita-center/cypress/$1",
|
||||
"Storybook/(.*)": "<rootDir>/apps/mudita-center/.storybook/$1",
|
||||
"p-queue$": `${__dirname}/__mocks__/p-queue.ts`,
|
||||
},
|
||||
rootDir: "../",
|
||||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
||||
|
||||
Reference in New Issue
Block a user