// "node"
// ],
- modulePaths: ['/home/dan/web/bookstack/'],
+ modulePaths: ['./'],
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
- moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
+ moduleNameMapper: {
+ 'lexical/shared/invariant': 'resources/js/wysiwyg/lexical/core/shared/__mocks__/invariant',
+ ...pathsToModuleNameMapper(compilerOptions.paths),
+ },
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],