Skip to content

Commit

Permalink
github: Enable NPM tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 1, 2021
1 parent b2a48dc commit 64a83b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
4 changes: 0 additions & 4 deletions hugolib/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ func TestJSBuildWithNPM(t *testing.T) {
t.Skip("skip (relative) long running modules test when running locally")
}

if runtime.GOOS == "windows" {
t.Skip("skip NPM test on Windows")
}

wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
Expand Down
5 changes: 0 additions & 5 deletions hugolib/resource_chain_babel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"bytes"
"os"
"path/filepath"
"runtime"
"testing"

"github.com/gohugoio/hugo/common/hexec"
Expand All @@ -40,10 +39,6 @@ func TestResourceChainBabel(t *testing.T) {
t.Skip("skip (relative) long running modules test when running locally")
}

if runtime.GOOS == "windows" {
t.Skip("skip npm test on Windows")
}

wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
Expand Down
9 changes: 2 additions & 7 deletions hugolib/resource_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/gohugoio/hugo/resources/resource_transformers/tocss/dartsass"

"path/filepath"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -925,10 +924,6 @@ func TestResourceChainPostCSS(t *testing.T) {
t.Skip("skip (relative) long running modules test when running locally")
}

if runtime.GOOS == "windows" {
t.Skip("skip npm test on Windows")
}

wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
Expand Down Expand Up @@ -1034,8 +1029,8 @@ class-in-b {

// Make sure Node sees this.
b.Assert(logBuf.String(), qt.Contains, "Hugo Environment: production")
b.Assert(logBuf.String(), qt.Contains, fmt.Sprintf("PostCSS Config File: %s/postcss.config.js", workDir))
b.Assert(logBuf.String(), qt.Contains, fmt.Sprintf("package.json: %s/package.json", workDir))
b.Assert(logBuf.String(), qt.Contains, filepath.FromSlash(fmt.Sprintf("PostCSS Config File: %s/postcss.config.js", workDir)))
b.Assert(logBuf.String(), qt.Contains, filepath.FromSlash(fmt.Sprintf("package.json: %s/package.json", workDir)))

b.AssertFileContent("public/index.html", `
Styles RelPermalink: /css/styles.css
Expand Down

0 comments on commit 64a83b2

Please sign in to comment.