texporter
could export test cases in html
or pdf
formats.
# npm
npm install -D texporter
# yarn
yarn add -D texporter
Add texport.json
file in project root directory.
Default config is as follows:
{
"format": "html",
"matchPattern": [".*\/__tests__\/.*\\.[jt]sx?$"],
"include": ["/src"]
}
Output file format, support html
and pdf
.
matchPattern
means which files want to be exported.
matchPattern
support regex pattern.
include
indicates which directories should be exported.
include
should be based on project root directory.