diff --git a/plugins/survey-plugin/jest.config.js b/plugins/survey-plugin/jest.config.js index e7fb0cf..1d04295 100644 --- a/plugins/survey-plugin/jest.config.js +++ b/plugins/survey-plugin/jest.config.js @@ -6,9 +6,9 @@ module.exports = { // map style asset imports to a stub file under the assumption they are not important to our tests "\\.(css|less)$": "/__mocks__/styleMock.js", "@cortexapps/plugin-core/components": - "/node_modules/@cortexapps/plugin-core/dist/components.cjs.js", + "/../../node_modules/@cortexapps/plugin-core/dist/components.cjs.js", "@cortexapps/plugin-core": - "/node_modules/@cortexapps/plugin-core/dist/index.cjs.js", + "/../../node_modules/@cortexapps/plugin-core/dist/index.cjs.js", }, setupFilesAfterEnv: ["/setupTests.ts"], testEnvironment: "jsdom", diff --git a/plugins/survey-plugin/tsconfig.json b/plugins/survey-plugin/tsconfig.json index da7c975..2ebb4a8 100644 --- a/plugins/survey-plugin/tsconfig.json +++ b/plugins/survey-plugin/tsconfig.json @@ -11,6 +11,6 @@ "removeComments": true, "strictNullChecks": true, "target": "es6", - "typeRoots": ["./node_modules/@types"] + "typeRoots": ["../../node_modules/@types", "./node_modules/@types"] } }