Files
hugo/testscripts/server/server__delete_static_mount_dir.txt
2026-08-08 18:08:03 +02:00

33 lines
558 B
Plaintext

# Test the hugo server command when removing a directory mounted into static.
# See issue 15174.
hugo server &
waitServer
rm mystatic/foo
sleep 2
stopServer
! stderr .
-- hugo.toml --
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
[[module.mounts]]
source = "content"
target = "content"
[[module.mounts]]
source = "layouts"
target = "layouts"
[[module.mounts]]
source = "mystatic/foo"
target = "static/foo"
-- layouts/all.html --
All.
-- content/p1.md --
-- mystatic/foo/static.txt --
static