1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/hugo/skip-tailwindcss-test.patch
2025-06-06 05:23:34 +00:00

37 lines
1 KiB
Diff

Reason: Skip tailwindcss integration test which fails on arches besides x86_64
and aarch64, limited by npm module watcher
Upstream: No
--- a/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
+++ b/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
@@ -14,17 +14,17 @@
package cssjs_test
import (
+ "os"
"testing"
"github.com/bep/logg"
qt "github.com/frankban/quicktest"
- "github.com/gohugoio/hugo/htesting"
"github.com/gohugoio/hugo/hugolib"
)
func TestTailwindV4Basic(t *testing.T) {
- if !htesting.IsCI() {
- t.Skip("Skip long running test when running locally")
+ if os.Getenv("GOARCH") != "amd64" && os.Getenv("GOARCH") != "arm64" {
+ t.Skip("Skip tailwindcss integration test")
}
files := `
@@ -73,6 +73,9 @@ CSS: {{ $css.Content | safeCSS }}|
}
func TestTailwindCSSNoInlineImportsIssue13719(t *testing.T) {
+ if os.Getenv("GOARCH") != "amd64" && os.Getenv("GOARCH") != "arm64" {
+ t.Skip("Skip tailwindcss integration test")
+ }
t.Parallel()
files := `