mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-07-21 02:05:45 +00:00
* test(frontend): migrate unit tests to rstest * docs: updates AGENTS.md * test(frontend): fix rstest lint formatting
20 lines
531 B
TypeScript
20 lines
531 B
TypeScript
import { resolve } from "path";
|
|
|
|
import { pluginReact } from "@rsbuild/plugin-react";
|
|
import { defineConfig } from "@rstest/core";
|
|
|
|
export default defineConfig({
|
|
plugins: [pluginReact()],
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
output: {
|
|
// Streamdown imports KaTeX CSS as a side effect. Bundle these packages so
|
|
// Rsbuild processes that CSS import instead of Node trying to load it.
|
|
bundleDependencies: ["streamdown", "katex"],
|
|
},
|
|
include: ["tests/unit/**/*.test.ts"],
|
|
});
|