Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Vitest to Node.js Test Runner #1749

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

progfay
Copy link
Owner

@progfay progfay commented Aug 7, 2024

Proposed Changes

npm test
▶ Code Block
  ✔ Simple code block (3.157875ms)
  ✔ Bulleted code block (0.129583ms)
  ✔ Code block with bullet (1.331ms)
  ✔ Consecutive code blocks (0.096208ms)
▶ Code Block (5.497958ms)
▶ blank
  ✔ Simple half-space blank (2.569292ms)
  ✔ Simple double-byte space blank (0.279291ms)
  ✔ Simple tab blank (0.17075ms)
  ✔ Multi char blank (0.081ms)
  ✔ Blank in the sentence (1.074875ms)
  ✔ [] is not blank (0.093083ms)
  ✔ Blank in the [*** ] (0.100708ms)
▶ blank (5.237333ms)
▶ bullet
  ✔ Single-byte space indent (4.597625ms)
  ✔ Double-byte space indent (0.838291ms)
  ✔ Tab indent (0.999917ms)
  ✔ Multi lines bullet (0.228083ms)
▶ bullet (7.820125ms)
▶ code
  ✔ Simple code with backquote (2.585833ms)
  ✔ Empty code with backquote (0.255167ms)
▶ code (3.651041ms)
▶ commandLine
  ✔ Simple command with $ (17.12125ms)
  ✔ Simple command with % (0.733083ms)
  ✔ `$` is not command (0.814458ms)
  ✔ `$ ` is not command (1.297417ms)
  ✔ `$s` is not command (0.169125ms)
▶ commandLine (22.457208ms)
▶ decoration
  ✔ Simple decoration (5.91625ms)
  ✔ All decoration (2.385334ms)
  ✔ Decoration * overflow (0.458541ms)
  ✔ Decoration similar with externalLink (0.336458ms)
  ✔ Decoration with hashTag (0.549916ms)
  ✔ Decoration with many [ (0.319125ms)
  ✔ Decoration with many [ and link (0.35125ms)
  ✔ Decoration with strong notation (it's just link) (0.447875ms)
  ✔ Decoration with icon notation (0.152833ms)
  ✔ Decoration with strong icon notation (it's just icon, not strong) (0.273708ms)
  ✔ Decoration with strong image notation (it's just image, not strong) (0.255709ms)
▶ decoration (12.719917ms)
▶ formula
  ✔ Simple formula (4.062542ms)
  ✔ Formula includes [] with tail half-space (0.264125ms)
  ✔ Formula includes [] without tail half-space (0.680709ms)
▶ formula (6.08775ms)
▶ googleMap
  ✔ Simple google map with NE (3.006541ms)
  ✔ Simple google map with SW (0.667583ms)
  ✔ Simple google map with zoom (0.112875ms)
  ✔ Simple google map with place on left (0.633375ms)
  ✔ Simple google map with place on right (0.126833ms)
▶ googleMap (5.372875ms)
▶ hashTag
  ✔ Simple hashTag (16.124ms)
  ✔ Only `#` is not hashTag (0.712541ms)
  ✔ HashTag includes `#` (0.09975ms)
  ✔ HashTag in sentence with spaces (0.131416ms)
  ✔ HashTag in sentence without spaces is not hashTag (0.768208ms)
  ✔ Multiple hashTag (0.134333ms)
▶ hashTag (19.064458ms)
▶ helpfeel
  ✔ Simple helpfeel (4.682084ms)
  ✔ No head `?` is not helpfeel (0.803083ms)
  ✔ Quoted ? is not helpfeel (0.676791ms)
▶ helpfeel (6.976ms)
▶ icon
  ✔ Simple root icon (2.596042ms)
  ✔ Simple relative icon (0.584416ms)
  ✔ Multiple icons (0.096542ms)
  ✔ Icon and internal link on same line (0.205417ms)
  ✔ Each multiple icon must be different Object (0.568333ms)
▶ icon (4.879208ms)
▶ image
  ✔ Simple image (2.995167ms)
  ✔ HTTP jpeg image with special and japanese chars (0.451959ms)
  ✔ HTTPS svg and GIF image with link (0.1835ms)
  ✔ Image with double image link (0.149875ms)
  ✔ Gyazo image (0.292958ms)
  ✔ Gyazo image with link (0.161875ms)
  ✔ Image with GET parameters (0.078083ms)
  ✔ Direct Gyazo image (0.074459ms)
▶ image (5.283625ms)
▶ line
  ✔ Line that have multi node (3.282708ms)
  ✔ Decoration line includes internal link (0.257958ms)
  ✔ Decoration line includes external link (0.167ms)
  ✔ Multi `]` (0.285417ms)
▶ line (4.802208ms)
▶ link
  ✔ Simple absolute link (3.61725ms)
  ✔ Simple absolute link with ahead non-space character (0.778333ms)
  ✔ Simple absolute link with bracket (0.097625ms)
  ✔ Simple root link (0.25725ms)
  ✔ Simple relative link (0.082792ms)
  ✔ Link with content (0.149083ms)
  ✔ Root and relative link path can include space (0.098417ms)
  ✔ Link with link (0.073333ms)
  ✔ Link with GET parameters (0.073334ms)
▶ link (6.099125ms)
▶ numberList
  ✔ Minimum numberList (2.826709ms)
  ✔ Simple numberList (0.732375ms)
  ✔ 1. with no space is not numberList (0.103209ms)
  ✔ No head 1. is not numberList (0.081209ms)
  ✔ Quoted 1. is not numberList (0.101708ms)
▶ numberList (4.646833ms)
▶ plain
  ✔ Simple plain text (2.722458ms)
  ✔ Blank line (0.177041ms)
  ✔ Keep tail space (0.599833ms)
▶ plain (4.28175ms)
▶ quote
  ✔ Simple quote (2.67625ms)
  ✔ Empty quote (0.1965ms)
▶ quote (3.64075ms)
▶ strong
  ✔ Simple strong (2.849709ms)
  ✔ [[]] is not strong (0.73225ms)
  ✔ Decoration in Strong notation (0.244834ms)
▶ strong (6.468333ms)
▶ strongIcon
  ✔ Simple root strong icon (2.416459ms)
  ✔ Simple relative strong icon (0.369583ms)
  ✔ Multiple icons (0.095583ms)
  ✔ Strong icon and internal link on same line (0.515083ms)
  ✔ Each multiple strong icon must be different Object (0.505875ms)
▶ strongIcon (4.706125ms)
▶ strongImage
  ✔ Simple strong image (2.671375ms)
  ✔ HTTP jpeg strong image with special and japanese chars (1.421959ms)
  ✔ Gyazo image (0.397209ms)
  ✔ Direct Gyazo image (0.30125ms)
▶ strongImage (5.86275ms)
▶ page
  ✔ Empty page (2.475041ms)
  ✔ Title Block without `hasTitle` option (0.1525ms)
  ✔ https://scrapbox.io/help/Syntax (5.858375ms)
▶ page (9.2985ms)
▶ Table
  ✔ Simple table (3.73ms)
  ✔ Bulleted table (0.373208ms)
  ✔ Table with empty cells (0.735875ms)
  ✔ Staggered table (0.154542ms)
  ✔ Consecutive table (0.249292ms)
  ✔ Node in table cells (0.56325ms)
▶ Table (6.629416ms)
▶ title
  ✔ Get title from simple page (0.820166ms)
  ✔ Get title from empty page (0.13075ms)
  ✔ Get title from title only page (0.064542ms)
  ✔ Get title from huge page (649.906333ms)
▶ title (651.779833ms)
ℹ tests 111
ℹ suites 23
ℹ pass 111
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1283.573875
ℹ start of coverage report
ℹ -----------------------------------------------------------------------------------
ℹ file                               | line % | branch % | funcs % | uncovered lines
ℹ -----------------------------------------------------------------------------------
ℹ src/block/CodeBlock.ts             | 100.00 |    75.00 |  100.00 |
ℹ src/block/index.ts                 | 100.00 |   100.00 |  100.00 |
ℹ src/block/Line.ts                  | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/BlankNode.ts        | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/CodeNode.ts         | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/CommandLineNode.ts  | 100.00 |    66.67 |  100.00 |
ℹ src/block/node/creator.ts          | 100.00 |    81.25 |  100.00 |
ℹ src/block/node/DecorationNode.ts   | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/ExternalLinkNode.ts | 100.00 |    90.00 |  100.00 |
ℹ src/block/node/FormulaNode.ts      | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/GoogleMapNode.ts    | 100.00 |    91.67 |  100.00 |
ℹ src/block/node/HashTagNode.ts      | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/HelpfeelNode.ts     | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/IconNode.ts         | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/ImageNode.ts        | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/index.ts            | 100.00 |    90.00 |  100.00 |
ℹ src/block/node/InternalLinkNode.ts | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/NumberListNode.ts   |  94.59 |    66.67 |  100.00 | 15-16
ℹ src/block/node/PlainNode.ts        | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/QuoteNode.ts        | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/StrongIconNode.ts   | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/StrongImageNode.ts  | 100.00 |   100.00 |  100.00 |
ℹ src/block/node/StrongNode.ts       | 100.00 |   100.00 |  100.00 |
ℹ src/block/Pack.ts                  | 100.00 |    86.67 |  100.00 |
ℹ src/block/Row.ts                   | 100.00 |   100.00 |  100.00 |
ℹ src/block/Table.ts                 | 100.00 |    83.33 |  100.00 |
ℹ src/block/Title.ts                 | 100.00 |   100.00 |  100.00 |
ℹ src/index.ts                       | 100.00 |   100.00 |  100.00 |
ℹ src/parse.ts                       | 100.00 |   100.00 |  100.00 |
ℹ tests/codeBlock/index.test.ts      | 100.00 |   100.00 |  100.00 |
ℹ tests/line/blank.test.ts           | 100.00 |   100.00 |  100.00 |
ℹ tests/line/bullet.test.ts          | 100.00 |   100.00 |  100.00 |
ℹ tests/line/code.test.ts            | 100.00 |   100.00 |  100.00 |
ℹ tests/line/commandLine.test.ts     | 100.00 |   100.00 |  100.00 |
ℹ tests/line/decoration.test.ts      | 100.00 |   100.00 |  100.00 |
ℹ tests/line/formula.test.ts         | 100.00 |   100.00 |  100.00 |
ℹ tests/line/googleMap.test.ts       | 100.00 |   100.00 |  100.00 |
ℹ tests/line/hashTag.test.ts         | 100.00 |   100.00 |  100.00 |
ℹ tests/line/helpfeel.test.ts        | 100.00 |   100.00 |  100.00 |
ℹ tests/line/icon.test.ts            |  94.29 |    87.50 |  100.00 | 29-30
ℹ tests/line/image.test.ts           | 100.00 |   100.00 |  100.00 |
ℹ tests/line/index.test.ts           | 100.00 |   100.00 |  100.00 |
ℹ tests/line/link.test.ts            | 100.00 |   100.00 |  100.00 |
ℹ tests/line/numberList.test.ts      | 100.00 |   100.00 |  100.00 |
ℹ tests/line/plain.test.ts           | 100.00 |   100.00 |  100.00 |
ℹ tests/line/quote.test.ts           | 100.00 |   100.00 |  100.00 |
ℹ tests/line/strong.test.ts          | 100.00 |   100.00 |  100.00 |
ℹ tests/line/strongIcon.test.ts      |  94.74 |    87.50 |  100.00 | 32-33
ℹ tests/line/strongImage.test.ts     | 100.00 |   100.00 |  100.00 |
ℹ tests/page/index.test.ts           | 100.00 |   100.00 |  100.00 |
ℹ tests/table/index.test.ts          | 100.00 |   100.00 |  100.00 |
ℹ tests/title/index.test.ts          | 100.00 |   100.00 |  100.00 |
ℹ -----------------------------------------------------------------------------------
ℹ all files                          |  99.71 |    95.60 |  100.00 |
ℹ -----------------------------------------------------------------------------------
ℹ end of coverage report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant