MCPcopy Create free account
hub / github.com/driangle/taskmd / TestExport_CustomOutput

Function TestExport_CustomOutput

apps/cli/internal/web/export_test.go:395–413  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

393}
394
395func TestExport_CustomOutput(t *testing.T) {
396 taskDir := createTestTaskDir(t)
397 outDir := filepath.Join(t.TempDir(), "custom-dir", "nested")
398
399 err := exportWithMockFS(t, ExportConfig{
400 OutputDir: outDir,
401 ScanDir: taskDir,
402 BasePath: "/",
403 Version: "test",
404 })
405 if err != nil {
406 t.Fatalf("Export failed: %v", err)
407 }
408
409 // Verify output is in the custom directory
410 if _, err := os.Stat(filepath.Join(outDir, "index.html")); err != nil {
411 t.Error("expected index.html in custom output directory")
412 }
413}
414
415func TestExport_GraphJSON(t *testing.T) {
416 taskDir := createTestTaskDir(t)

Callers

nothing calls this directly

Calls 3

createTestTaskDirFunction · 0.85
exportWithMockFSFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected