vivliostyle / vfm

⬇️ Open and extendable Markdown syntax and toolchain.
https://vivliostyle.github.io/vfm/#/vfm
Other
71 stars 12 forks source link

chor: Added test for attribute syntax #72

Closed akabekobeko closed 3 years ago

akabekobeko commented 3 years ago

And added test: debug to package.json to run a single test file. Change the xxx.test.ts part to the one you want to test.

akabekobeko commented 3 years ago

46 対応する予定だったが remark-attr 修正 を待つことになるので、

という観点からテスト追加を PR することにした。

ついでに構文 (ファイル) 単位のテストをするため package.jsontest:debug を追加。ファイル名部分をその時点でデバッグしたいものに変更することで局所的なテストをおこなえる。コマンド側でログ出力も許可してある。ある構文の問題を調べる場合はこれを npm run test:debug として使い、テストが通ったら npm test で連携も確認するというのを想定。