Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: add fallback for reactive_tests config (#7214)

Myles Scolnick235870718d65
diff --git a/frontend/src/core/config/__tests__/config-schema.test.ts b/frontend/src/core/config/__tests__/config-schema.test.ts
index 86960ce3da..0e583f3fb3 100644
--- a/frontend/src/core/config/__tests__/config-schema.test.ts
+++ b/frontend/src/core/config/__tests__/config-schema.test.ts
@@ -87,6 +87,7 @@ test("default UserConfig - empty", () => {
"default_auto_download": [],
"default_sql_output": "auto",
"on_cell_change": "autorun",
+ "reactive_tests": true,
"watcher_on_save": "lazy",
},
"save": {
@@ -154,6 +155,7 @@ test("default UserConfig - one level", () => {
"default_auto_download": [],
"default_sql_output": "auto",
"on_cell_change": "autorun",
+ "reactive_tests": true,
"watcher_on_save": "lazy",
},
"save": {
diff --git a/frontend/src/core/config/config-schema.ts b/frontend/src/core/config/config-schema.ts
index 1bb28d17df..a4984a0643 100644
--- a/frontend/src/core/config/config-schema.ts
+++ b/frontend/src/core/config/config-schema.ts
@@ -119,6 +119,7 @@ export const UserConfigSchema = z
auto_instantiate: z.boolean().prefault(true),
on_cell_change: z.enum(["lazy", "autorun"]).prefault("autorun"),
auto_reload: z.enum(["off", "lazy", "autorun"]).prefault("off"),
+ reactive_tests: z.boolean().prefault(true),
watcher_on_save: z.enum(["lazy", "autorun"]).prefault("lazy"),
default_sql_output: z.enum(VALID_SQL_OUTPUT_FORMATS).prefault("auto"),
default_auto_download: z