aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/integrationtest_builder.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-11-18 10:04:37 +0100
committerBjørn Erik Pedersen <[email protected]>2024-11-18 13:41:12 +0100
commit3b6eaf9b1f128b36fe25478b2e7c4d8463e5ab58 (patch)
tree6b22933db13ee7564c04f5daa8497754eccd6005 /hugolib/integrationtest_builder.go
parent1fd845eee4d2d0dc264c0f45471815d00160f7dc (diff)
downloadhugo-3b6eaf9b1f128b36fe25478b2e7c4d8463e5ab58.tar.gz
hugo-3b6eaf9b1f128b36fe25478b2e7c4d8463e5ab58.zip
dartsass: Add silenceDeprecations option
Fixes #13045
Diffstat (limited to 'hugolib/integrationtest_builder.go')
-rw-r--r--hugolib/integrationtest_builder.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go
index 5dc13592f..637e5dee0 100644
--- a/hugolib/integrationtest_builder.go
+++ b/hugolib/integrationtest_builder.go
@@ -76,6 +76,13 @@ func TestOptWarn() TestOpt {
}
}
+// TestOptOsFs will enable the real file system in integration tests.
+func TestOptOsFs() TestOpt {
+ return func(c *IntegrationTestConfig) {
+ c.NeedsOsFS = true
+ }
+}
+
// TestOptWithNFDOnDarwin will normalize the Unicode filenames to NFD on Darwin.
func TestOptWithNFDOnDarwin() TestOpt {
return func(c *IntegrationTestConfig) {