mirror of
https://github.com/FlowiseAI/Flowise.git
synced 2026-10-12 02:02:17 +00:00
* fix(ui): allow XML tag for rich input - Introduced utilities for escaping and unescaping non-standard XML/HTML tags to preserve them during markdown processing. - Updated RichInput and ExpandRichInputDialog components to utilize the new XML tag utilities for handling custom tags. - Added Jest configuration for the UI package and created tests for the XML tag utilities to ensure functionality. - Updated package.json to include Jest as a dependency and added a test script. * address code review comments from Gemini * allow html tag in markdown editor * add test case for markdown format * update dependency in ui
15 lines
466 B
JavaScript
15 lines
466 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/src'],
|
|
testEnvironment: 'node',
|
|
testMatch: ['<rootDir>/src/**/*.test.js'],
|
|
testPathIgnorePatterns: ['/node_modules/', '/build/'],
|
|
moduleNameMapper: {
|
|
'\\.(css|less|scss|sass|svg|png|jpg|jpeg|gif|webp)$': '<rootDir>/src/__mocks__/styleMock.js',
|
|
'^@/(.*)$': '<rootDir>/src/$1'
|
|
},
|
|
transform: {
|
|
'^.+\\.jsx?$': 'babel-jest'
|
|
},
|
|
transformIgnorePatterns: ['/node_modules/']
|
|
}
|