create-grist-widget 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/vite.config.ts +10 -0
package/package.json
CHANGED
package/template/vite.config.ts
CHANGED
|
@@ -26,5 +26,15 @@ export default defineConfig({
|
|
|
26
26
|
},
|
|
27
27
|
test: {
|
|
28
28
|
environment: "jsdom",
|
|
29
|
+
// Most examples/<id>/ don't ship their own WidgetApp.test.tsx yet (it's
|
|
30
|
+
// optional, per docs/planning/2026-08-execution-plan.md §3) --
|
|
31
|
+
// overlayExampleSrc correctly deletes the template's own App.test.tsx
|
|
32
|
+
// when swapping in one that has none (it would otherwise assert against
|
|
33
|
+
// content that's no longer there), so `create --example <id>` / `use
|
|
34
|
+
// <id>` routinely leave a project with zero test files. Without this,
|
|
35
|
+
// `pnpm test` exits 1 ("No test files found") on every one of those --
|
|
36
|
+
// a project that legitimately has no tests yet should report green, not
|
|
37
|
+
// red. Found live testing the real published create-grist-widget@0.3.9.
|
|
38
|
+
passWithNoTests: true,
|
|
29
39
|
},
|
|
30
40
|
})
|