Spaces:
Paused
Paused
Download packages/temporal/src/errors.test.ts from ccheney/engram-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/spaces/ccheney/engram-benchmark/resolve/main/packages/temporal/src/errors.test.ts
- Command line
-
hf download hf://spaces/ccheney/engram-benchmark/packages/temporal/src/errors.test.ts
-
curl -L -o errors.test.ts https://huggingface.co/spaces/ccheney/engram-benchmark/resolve/main/packages/temporal/src/errors.test.ts
510 Bytes
| import { describe, expect, it } from "vitest"; | |
| import { type ExecutionError, isUserError } from "./errors"; | |
| describe("Execution Errors", () => { | |
| it("isUserError should return true by default", () => { | |
| expect(isUserError(new Error("test"))).toBe(true); | |
| }); | |
| it("should define ExecutionError interface", () => { | |
| const err: ExecutionError = { | |
| type: "UserError", | |
| message: "Something went wrong", | |
| }; | |
| expect(err.type).toBe("UserError"); | |
| expect(err.message).toBe("Something went wrong"); | |
| }); | |
| }); | |