/ok-to-test tags="@tag.Anvil" <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced the `Avatar` component for displaying user avatars. - Added the `Markdown` component for rendering Markdown content with GitHub Flavored Markdown support. - Enhanced `AIChat` component with a new modular input system and improved message display. - **Bug Fixes** - Updated CSS for better styling consistency across components. - **Refactor** - Removed outdated components (`ChatDescriptionModal` and `ThreadMessage`) to streamline the codebase. - Simplified the structure of `AIChat` by incorporating new components. - **Documentation** - Updated Storybook stories for `AIChat`, `Avatar`, and `Markdown` components to showcase new features. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/11320929997> > Commit: db2bc5c9a0a0a65b3d9dd4f53e9f100beb3af3a7 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11320929997&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Anvil` > Spec: > <hr>Mon, 14 Oct 2024 04:42:54 UTC <!-- end of auto-generated comment: Cypress test results -->
23 lines
546 B
JavaScript
23 lines
546 B
JavaScript
const esModules = ["remark-gfm"].join("|");
|
|
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
roots: ["<rootDir>/src"],
|
|
setupFiles: ["<rootDir>../../../test/__mocks__/reactMarkdown.tsx"],
|
|
testEnvironment: "jsdom",
|
|
moduleNameMapper: {
|
|
"\\.(css)$": "<rootDir>../../../test/__mocks__/styleMock.js",
|
|
},
|
|
transformIgnorePatterns: [
|
|
`[/\\\\]node_modules[/\\\\](?!${esModules}).+\\.(js|jsx|mjs|cjs|ts|tsx)$`,
|
|
],
|
|
globals: {
|
|
"ts-jest": {
|
|
useESM: true,
|
|
tsconfig: {
|
|
verbatimModuleSyntax: false,
|
|
},
|
|
},
|
|
},
|
|
};
|