Skip to content

Commit

Permalink
Snapshot testing!
Browse files Browse the repository at this point in the history
Adds a set of test cases and recorded AST and HTML results.
  • Loading branch information
leebyron committed Jul 4, 2019
1 parent e0ea7fa commit 45f2665
Show file tree
Hide file tree
Showing 6 changed files with 8,955 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/spec-md
Expand Up @@ -38,4 +38,4 @@ specmd.html(absPath, options).then(function (html) {
function errorExit(msg) {
process.stderr.write(msg + '\n');
process.exit(1);
}
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"bin": "./bin/spec-md",
"main": "./src/index.js",
"scripts": {
"test": "pegjs src/grammar.pegjs && ./bin/spec-md README.md > /dev/null",
"test": "pegjs src/grammar.pegjs && ./bin/spec-md README.md > /dev/null && node ./test/runner.js",
"build": "pegjs src/grammar.pegjs && mkdir -p out && ./bin/spec-md -m spec/metadata.json README.md > out/index.html",
"watch": "nodemon --exec './bin/spec-md -m spec/metadata.json > out/index.html' README.md",
"prepublish": "npm run build",
Expand All @@ -25,6 +25,7 @@
"prismjs": ">=1.16.0"
},
"devDependencies": {
"jest-diff": "^24.8.0",
"nodemon": "1.19.1",
"pegjs": "~0.8.0"
},
Expand Down

0 comments on commit 45f2665

Please sign in to comment.