diff --git a/internal/shader/shader_test.go b/internal/shader/shader_test.go index cc8695c5a..f37763079 100644 --- a/internal/shader/shader_test.go +++ b/internal/shader/shader_test.go @@ -19,6 +19,7 @@ import ( "go/token" "io/ioutil" "path/filepath" + "runtime" "strings" "testing" @@ -26,6 +27,10 @@ import ( ) func TestCompile(t *testing.T) { + if runtime.GOOS == "js" { + t.Skip("file open might not be implemented in this environment") + } + files, err := ioutil.ReadDir("testdata") if err != nil { t.Fatal(err)