We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9f65b commit e899203Copy full SHA for e899203
1 file changed
app/terminal/page.tsx
@@ -15,6 +15,7 @@ import {
15
import { replTests } from "@my-code/runtime/tests/repl";
16
import { fileExecutionTests } from "@my-code/runtime/tests/fileExecution";
17
import { useRuntimeAll } from "@my-code/runtime/context";
18
+import { captureException } from "@sentry/nextjs";
19
20
import main_py from "./samples/main.py?raw";
21
import main_rb from "./samples/main.rb?raw";
@@ -270,6 +271,13 @@ function MochaTest() {
270
271
}
272
273
const runner = mocha.run();
274
+ runner.on("fail", (test, err) => {
275
+ captureException(err, {
276
+ extra: {
277
+ fullTitle: test.fullTitle(),
278
+ },
279
+ });
280
281
runner.on("end", () => {
282
setMochaState("finished");
283
});
0 commit comments