Skip to content

Commit

Permalink
lighten push test, fix bad xmllintcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
derduher committed Aug 31, 2019
1 parent 61f6e43 commit ff168c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"build": "tsc",
"prepublishOnly": "sort-package-json && npm run test",
"test": "eslint lib/* ./cli.ts && tsc && jest && npm run test:xmllint",
"test-fast": "jest ./tests/sitemap-item.test.ts ./tests/sitemap-index.test.ts ./tests/sitemap.test.ts ./tests/sitemap-shape.test.ts",
"test-fast": "eslint lib/* ./cli.ts && tsc && jest ./tests/sitemap*",
"test-perf": "node ./tests/perf.js > /dev/null",
"test:schema": "node tests/alltags.js | xmllint --schema schema/all.xsd --noout -",
"test:typecheck": "tsc",
Expand All @@ -36,7 +36,7 @@
"husky": {
"hooks": {
"pre-commit": "sort-package-json",
"pre-push": "npm test"
"pre-push": "npm run test-fast"
}
},
"eslintConfig": {
Expand Down
2 changes: 1 addition & 1 deletion tests/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pkg = require('../package.json')
const nomralizedSample = require('./mocks/sampleconfig.normalized.json')
let hasXMLLint = true
try {
const lintCheck = execFileSync('which', ['xmlLint'])
execFileSync('which', ['xmllint'])
} catch {
hasXMLLint = false
}
Expand Down
2 changes: 1 addition & 1 deletion tests/xmllint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { xmlLint } from '../index'
const execFileSync = require('child_process').execFileSync
let hasXMLLint = true
try {
execFileSync("which", ["xmlLint"]);
execFileSync("which", ["xmllint"]);
} catch {
hasXMLLint = false
}
Expand Down

0 comments on commit ff168c8

Please sign in to comment.