Files
sweet/packages/plugin-vite
Bartek IwańczukandClaude Opus 4.6 a872a70e5f 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>
2026-03-30 19:14:10 +02:00
..

Fresh vite plugin

Vite plugin for Fresh.

Usage

  1. Run deno install jsr:@fresh/plugin-vite npm:vite
  2. Ensure that your deno.json has the fresh import mapping:
{
  "imports": {
    "fresh": "jsr:@fresh/core"
  }
}
  1. Update your vite.config.ts file:
  import { defineConfig } from "vite";
+ import { fresh } from "@fresh/plugin-vite";
  
  export default defineConfig({
    plugins: [
+     fresh(),
    ],
  });
  1. Update your deno tasks respectively:
  • Dev: vite
  • Build: vite build

More information on the Fresh documentation .