Skip to content

Commit

Permalink
Use en_US locale for tests
Browse files Browse the repository at this point in the history
Some tests assert on the output from git commands, which depends on system locale.
On my system, using sv_SE locale, one test would fail on asserted regex
/N|not a git repository*/.

Fixed simply by forcing en_US locale for tests, since the locale doesn't really
matter during normal use.
  • Loading branch information
henhal committed May 27, 2021
1 parent 0d5364a commit 9b370ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -34,8 +34,8 @@
"scripts": {
"lint": "eslint .",
"eslint": "eslint",
"test": "nyc ava",
"test:watch": "ava --watch",
"test": "LANG=en_US nyc ava",
"test:watch": "LANG=en_US ava --watch",
"build:node": "cross-env BABEL_ENV=production babel src --out-dir lib",
"build": "npm run lint && npm run test && npm run build:node",
"ci:coverage": "nyc report --reporter=text-lcov | coveralls"
Expand Down

0 comments on commit 9b370ca

Please sign in to comment.