Custom Title for Report

Build

components/App/FilenameAsTitleByDefault.vitest.spec.tsx

Has logs Open file
Skipped tests: 1,
Todo tests: 1,
Failing tests: 2,
  • App » render h1 title
    accessibilityui
    fail

    Errors

    Unable to find an accessible element with the role "heading"

    Here are the accessible roles:

    heading:

    Name "@ test":
    <h1 />

    --------------------------------------------------

    Ignored nodes: comments, script, style
    <body>
    <div>
    <h1>
    <span
    style="color: rgb(80, 165, 165);"
    >
    @
    </span>
    test
    </h1>
    </div>
    </body>
  • App » this is a skipped test
    @parsesCustomTagsLikeThis
    skip
  • App » this is a todo test
    todo
  • App » this is a failing test
    convert this to icon
    fail

    Errors

    - Expected
    + Received

    - true
    + false

    Logs

    console.log

    { content: 'fail' }

common/handlesDifferentTestBlocks.vitest.spec.ts

Open file
unit
Skipped tests: 2,
Passing tests: 2,
  • test.each
    unit
    pass
  • test.each
    unit
    pass
  • describe.concurrent » test.skipIf.each: sum 1 + 1 = 2
    unit
    skip
  • describe.concurrent » test.skipIf.each: sum 3 + 2 = 5
    unit
    skip

Custom title formatting supported

Open file
aggregate tags for display in title summary
Passing tests: 1,
  • common types » map object so keys are the same as values
    aggregate tags for display in title summary
    pass

js/commonjs.vitest.spec.cjs

Open file
Passing tests: 1,
  • spec.cjs
    unit
    pass

js/javascript.vitest.spec.js

Open file
Passing tests: 1,
  • spec.js
    unit
    pass

js/module.vitest.spec.mjs

Open file
Passing tests: 1,
  • spec.mjs
    unit
    pass