diff --git a/jest.cjs b/jest.cjs index 07243baa..b67ead34 100644 --- a/jest.cjs +++ b/jest.cjs @@ -1,6 +1,7 @@ module.exports.makePackageConfig = () => { return { ...require("@jspsych/config/jest").makePackageConfig(__dirname), + moduleNameMapper: { "@lookit/data": "/../../packages/data/src" }, coverageThreshold: { global: { branches: 100, diff --git a/packages/surveys/jest.config.cjs b/packages/surveys/jest.config.cjs index a88b87e7..a60ad979 100644 --- a/packages/surveys/jest.config.cjs +++ b/packages/surveys/jest.config.cjs @@ -1,7 +1,6 @@ -const config = require("@jspsych/config/jest").makePackageConfig(__dirname); +const config = require("../../jest.cjs").makePackageConfig(); module.exports = { ...config, - moduleNameMapper: {}, testEnvironmentOptions: { ...config.testEnvironmentOptions, url: "https://localhost:8000/exp/studies/j/1647e101-282a-4fde-a32b-4f493d14f57e/8a2b2f04-63eb-485a-8e55-7b9362368f19/",