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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
test: await presentation-mode rejections (#10804)
Shahmir Varqhafafd2d96f844
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.jsonindex 41430a85e8..4fe747e99b 100644--- a/frontend/.oxlintrc.json+++ b/frontend/.oxlintrc.json@@ -78,7 +78,6 @@{ "additionalTestBlockFunctions": ["beforeEach"] }],"vitest/prefer-snapshot-hint": "off",- "vitest/valid-expect": "off",// === Core rules ==="no-var": "error",diff --git a/frontend/src/core/__tests__/mode.test.ts b/frontend/src/core/__tests__/mode.test.tsindex f58d7c186c..571aad223f 100644--- a/frontend/src/core/__tests__/mode.test.ts+++ b/frontend/src/core/__tests__/mode.test.ts@@ -49,7 +49,14 @@ describe("runDuringPresentMode", () => {store.set(viewStateAtom, state);const result = runDuringPresentMode(() => Promise.reject(error));- const rejection = expect(result).rejects.toBe(error);+ const rejection = result.then(+ () => {+ throw new Error("Expected runDuringPresentMode to reject");+ },+ (caughtError: unknown) => {+ expect(caughtError).toBe(error);+ },+ );await vi.runAllTimersAsync();await rejection;