1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Lexical: Got a range of Editor tests working

This commit is contained in:
Dan Brown
2024-09-18 17:31:51 +01:00
parent 22d078b47f
commit ccd486f2a9
26 changed files with 116 additions and 486 deletions

View File

@@ -93,10 +93,13 @@ const config: Config = {
// "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: [],