You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const baseConfig = require("../jest.config.js");
module.exports = {
...baseConfig,
moduleDirectories: [
"node_modules",
"app-admin", // allow absolute imports starting with 'App' (eg. resolves imports starting 'App' and not just 'app-front/App')
],
moduleNameMapper: {
"\\.(css|less)$": "<rootDir>/test/styleMock.js",
"redux-actions": "redux-actions/dist/redux-actions" //problem here
},
setupFiles: ["<rootDir>/test/setupTests.ts"],
};
error:
Could not locate module redux-actions mapped as:
redux-actions/dist/redux-actions.
Please check your configuration for these entries:
{
"moduleNameMapper": {
"/redux-actions/": "redux-actions/dist/redux-actions"
},
"resolver": undefined
}
The text was updated successfully, but these errors were encountered:
Updated to latest 3.0.3 and still not working. 2.6.5 working fine.
using "jest": "^29.7.0",
:
base jest conf:
usage of actual mapper:
error:
The text was updated successfully, but these errors were encountered: