1 parent 36878b6 commit cc7b2fdCopy full SHA for cc7b2fd
1 file changed
packages/rstack/src/define.ts
@@ -26,7 +26,20 @@ const setConfig = (type: ConfigType, config: Config): void => {
26
};
27
28
type Define = {
29
+ /**
30
+ * Defines the Rsbuild config for the app.
31
+ *
32
+ * This config is used by the `rs dev`, `rs build`, and `rs preview` commands.
33
+ */
34
app: (config: RsbuildConfigDefinition) => void;
35
36
+ * Defines the Rstest config for tests.
37
38
+ * This config is used by the `rs test` command.
39
40
+ * If `define.app` is also used, Rstest automatically extends the app config unless
41
+ * `extends` is set explicitly.
42
43
test: (config: RstestConfigExport) => void;
44
45
0 commit comments