penpot/plugins/apps/plugin-api-test-suite/vite.config.tests.ts
2026-06-30 14:01:38 +02:00

9 lines
491 B
TypeScript

import { iifeConfig } from './vite.config.iife';
// Builds the test cases as a single self-executing (IIFE) bundle that publishes
// the discovered tests on `globalThis.__penpotReloadedTests`. The UI "Reload"
// button fetches this file and the plugin sandbox `eval`s it to pick up edited
// tests without reopening the plugin. Rebuilt on save by the `watch` script.
// See vite.config.iife.ts for the shared bundle config.
export default iifeConfig('tests-bundle', 'src/tests-bundle.ts');