Files
Flowise/packages/ui/jest.config.js
T
Jocelyn Lin 7df6e95c40 fix(ui): allow XML tag for markdown rich input (#6095)
* 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
2026-04-02 09:02:07 -07:00

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/']
}