summaryrefslogtreecommitdiffstats
path: root/resources/resource_transformers/postcss/integration_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/resource_transformers/postcss/integration_test.go')
-rw-r--r--resources/resource_transformers/postcss/integration_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/resources/resource_transformers/postcss/integration_test.go b/resources/resource_transformers/postcss/integration_test.go
index c920fe17d..74aaa2661 100644
--- a/resources/resource_transformers/postcss/integration_test.go
+++ b/resources/resource_transformers/postcss/integration_test.go
@@ -168,6 +168,25 @@ func TestTransformPostCSSError(t *testing.T) {
}
+func TestTransformPostCSSNotInstalledError(t *testing.T) {
+ if !htesting.IsCI() {
+ t.Skip("Skip long running test when running locally")
+ }
+
+ c := qt.New(t)
+
+ s, err := hugolib.NewIntegrationTestBuilder(
+ hugolib.IntegrationTestConfig{
+ T: c,
+ NeedsOsFS: true,
+ TxtarString: postCSSIntegrationTestFiles,
+ }).BuildE()
+
+ s.AssertIsFileError(err)
+ c.Assert(err.Error(), qt.Contains, `binary with name "npx" not found`)
+
+}
+
// #9895
func TestTransformPostCSSImportError(t *testing.T) {
if !htesting.IsCI() {