Files
Jiahan ChenandGitHub 6fb22bb311 test(frontend): migrate unit tests to rstest (#3703)
* test(frontend): migrate unit tests to rstest

* docs: updates AGENTS.md

* test(frontend): fix rstest lint formatting
2026-06-22 16:12:49 +08:00

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"],
});