refactor: add integrationTest() helper to reduce test boilerplate (#3711)
## Summary - Adds an `integrationTest()` wrapper in `packages/fresh/src/test_utils.ts` that calls `Deno.test` with `sanitizeOps: false` and `sanitizeResources: false` - Converts ~88 integration tests across 5 files to use the new helper, removing repetitive sanitizer boilerplate - Net reduction of ~344 lines (-1678/+1334) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
196509274f
commit
a872a70e5f
@@ -1,9 +1,11 @@
|
||||
import { createBuilder } from "vite";
|
||||
import * as path from "@std/path";
|
||||
import { walk } from "@std/fs/walk";
|
||||
import { withTmpDir } from "../../fresh/src/test_utils.ts";
|
||||
import { integrationTest, withTmpDir } from "../../fresh/src/test_utils.ts";
|
||||
import { withChildProcessServer } from "../../fresh/tests/test_utils.tsx";
|
||||
|
||||
export { integrationTest };
|
||||
|
||||
export const DEMO_DIR = path.join(import.meta.dirname!, "..", "demo");
|
||||
export const FIXTURE_DIR = path.join(import.meta.dirname!, "fixtures");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user