UNPKG

426 BJavaScriptView Raw
1const acquit = require('acquit');
2const fs = require('fs');
3
4require('acquit-ignore')();
5require('acquit-markdown')(null, { it: true });
6
7acquit.output(function(str) {
8 return str.replace(/acquit:ignore:end\s+/g, '');
9});
10
11const header = fs.readFileSync('./HEADER.md', 'utf8');
12const markdown =
13 acquit.parse(fs.readFileSync('./test/examples.test.js', 'utf8'));
14
15fs.writeFileSync('./README.md', `${header}\n\n${markdown}`);