{
  "id": "task_libraries:testing/javascript",
  "path": "/exapedia/javascript-testing-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript testing libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript testing libraries run automated checks against code, from a single function to a full user flow in a real browser. A test runner executes test files in Node.js or a browser and reports each failed assertion. These libraries let developers catch regressions before code reaches production."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript testing libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#vitest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#playwright",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mocha",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cypress",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uvu",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jasmine-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#karma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#vitest",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F2"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Real-browser support",
            "Assertions included",
            "Function spies included"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#vitest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#playwright",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mocha",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cypress",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uvu",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jasmine-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#karma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "vitest",
          "name": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vitest-dev/vitest"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/vitest"
            },
            {
              "label": "Docs",
              "href": "https://vitest.dev/guide/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://vitest.dev/guide/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/webdriverio/webdriverio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function launch(params: Frameworks.FrameworkLaunchParams): Promise<number> {\n    if (params.specs.length === 0 && (params.config.shard?.total ?? 1) > 1) {\n        log.info(`No specs to execute in shard ${params.config.shard!.current}/${params.config.shard!.total}, exiting!`)\n        return 0\n    }\n    let bridgeFailures = 0\n    // startVitest resolves only after the run, so the instance to cancel is captured while the run starts\n    let running: Vitest | undefined\n    let cancelRequested = params.signal?.aborted ?? false\n    const cancel = () => {\n        cancelRequested = true\n        running?.cancelCurrentRun('keyboard-input').catch((err) => log.warn('Failed to cancel the Vitest run:', err))\n    }\n    params.signal?.addEventListener('abort', cancel, { once: true })\n    const viteConfig = await toVitestConfig(params, () => bridgeFailures++)\n    const reporters = viteConfig.test!.reporters\n    viteConfig.test!.reporters = [...(reporters === undefined ? ['default'] : Array.isArray(reporters) ? reporters : [reporters]), {\n        onInit(instance: Vitest) {\n            running = instance\n            // Vitest's Logger exits the process 1ms after SIGINT/SIGTERM, before the launcher's exit handler finishes waiting on this launch\n            listenersBefore.forEach(([signal, before]) => process.listeners(signal).filter((listener) => !before.includes(listener)).forEach((listener) => process.off(signal, listener)))\n            if (cancelRequested) {\n                cancel()\n            }\n        }\n    }]\n    const listenersBefore = snapshotSignalListeners()\n    let vitest: Vitest | undefined\n    try {\n        vitest = await startVitest([], { run: true, watch: false, config: false }, viteConfig)\n        // a cancelled run leaves its tests skipped or pending, which would otherwise count as green\n        return countFailures(vitest) + bridgeFailures + (params.signal?.aborted ? 1 : 0)\n    } finally {\n        params.signal?.removeEventListener('abort', cancel)\n        await vitest?.close()\n    }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/webdriverio/webdriverio/blob/4ef7adc33d43987bc1c6bcce9cc60ddfef29b7e7/packages/wdio-vitest-framework/src/index.ts#L29-L65",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20vitest%20for%20programmatic%20test%20runner%20setup%2C%20reporter%20integration%2C%20lifecycle%20cleanup%20and%20test%20cancellation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { expect, test } from 'vitest'\n\nexport function sum(a, b) {\n  return a + b\n}\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3)\n})",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/vitest-dev/vitest/blob/v5.1.1/docs/guide/index.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "playwright",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/microsoft/playwright"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/playwright"
            },
            {
              "label": "Docs",
              "href": "https://playwright.dev/docs/intro"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://playwright.dev/docs/intro",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { test, expect } from '@playwright/test';\n\ntest('has title', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n\n  // Expect a title \"to contain\" a substring.\n  await expect(page).toHaveTitle(/Playwright/);\n});",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/playwright/blob/v1.65.1/docs/src/writing-tests-js.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "writing-tests-js.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=playwright%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jest",
          "name": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jestjs/jest"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jest"
            },
            {
              "label": "Docs",
              "href": "https://jestjs.io/docs/getting-started"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F40"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://jestjs.io/docs/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/nrwl/nx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function jestExecutor(\n  options: JestExecutorOptions,\n  context: ExecutorContext\n): Promise<{ success: boolean }> {\n  warnJestExecutorDeprecation();\n\n  // Jest registers ts-node with module CJS https://github.com/SimenB/jest/blob/v29.6.4/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L117-L119\n  // We want to support of ESM via 'module':'nodenext', we need to override the resolution until Jest supports it.\n  const existingValue = process.env['TS_NODE_COMPILER_OPTIONS'];\n  process.env['TS_NODE_COMPILER_OPTIONS'] = JSON.stringify({\n    ...(existingValue ? JSON.parse(existingValue) : {}),\n    moduleResolution: 'Node10',\n    module: 'commonjs',\n    customConditions: null,\n  });\n\n  const config = await parseJestConfig(options, context);\n\n  const { results } = await runCLI(config, [options.jestConfig]);\n  return { success: results.success };\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/nrwl/nx/blob/ee0bc60a335663bbf1a4ded4efa57198bf6cf268/packages/jest/src/executors/jest/jest.impl.ts#L22-L42",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20jest%20for%20programmatic%20test%20runner%20setup%2C%20reporter%20integration%2C%20lifecycle%20cleanup%20and%20test%20cancellation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "function sum(a, b) {\n  return a + b;\n}\nmodule.exports = sum;\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3);\n});",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/jestjs/jest/blob/v30.5.2/docs/GettingStarted.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "GettingStarted.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mocha",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mochajs/mocha"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/mocha"
            },
            {
              "label": "Docs",
              "href": "https://mochajs.org/api/mocha"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F60"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mochajs.org/api/mocha",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/webdriverio/webdriverio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async init() {\n        const { mochaOpts } = this._config\n        if (Array.isArray(mochaOpts.require)) {\n            const plugins = await handleRequires(\n                mochaOpts.require\n                    .filter((p) => typeof p === 'string')\n                    .map((p) => path.resolve(this._config.rootDir, p))\n            )\n            Object.assign(mochaOpts, plugins)\n        }\n\n        applyMochaDefaults(mochaOpts)\n\n        const mocha = this._mocha = new Mocha(mochaOpts)\n        mocha.reporter(NOOP as unknown as Mocha.Reporter)\n        mocha.fullTrace()\n\n        /**\n         * as Mocha doesn't support file:// formats yet we have to\n         * remove it before adding it to Mocha\n         */\n        this._specs.forEach((spec) => mocha.addFile(specFilePath(spec)))\n\n        const { beforeTest, beforeHook, afterTest, afterHook } = this._config\n        mocha.suite.on('pre-require', () =>\n            setupEnv(this._cid, this._config.mochaOpts, beforeTest, beforeHook, afterTest, afterHook))\n        mocha.suite.on('require', () => mocha.unloadFiles())\n        await this._loadFiles(mochaOpts)\n        return this\n    }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/webdriverio/webdriverio/blob/4ef7adc33d43987bc1c6bcce9cc60ddfef29b7e7/packages/wdio-mocha-framework/src/index.ts#L74-L103",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20mocha%20for%20programmatic%20test%20runner%20setup%2C%20reporter%20integration%2C%20lifecycle%20cleanup%20and%20test%20cancellation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "// test/example.test.js\nimport assert from \"node:assert\";\n\ndescribe(\"Array\", function () {\n  describe(\"#indexOf()\", function () {\n    it(\"should return -1 when the value is not present\", function () {\n      assert.equal([1, 2, 3].indexOf(4), -1);\n    });\n  });\n});",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/mochajs/mocha/blob/main/docs/src/content/docs/getting-started.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "programmatic-usage.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cypress",
          "name": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cypress-io/cypress"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/cypress"
            },
            {
              "label": "Docs",
              "href": "https://docs.cypress.io/api/commands/request"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.cypress.io/api/commands/request",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cypress-io/cypress-example-kitchensink",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "() => {\n    // first, let's find out the userId of the first user we have\n    cy.request('http://localhost:8080/users?_limit=1')\n      .its('body') // yields the response object\n      .its('0') // yields the first element of the returned list\n      // the above two commands its('body').its('0')\n      // can be written as its('body.0')\n      // if you do not care about TypeScript checks\n      .then((user) => {\n        expect(user).property('id').to.be.a('number')\n        // make a new post on behalf of the user\n        cy.request('POST', 'http://localhost:8080/posts', {\n          userId: user.id,\n          title: 'Cypress Test Runner',\n          body: 'Fast, easy and reliable testing for anything that runs in a browser.',\n        })\n      })\n      // note that the value here is the returned value of the 2nd request\n      // which is the new post object\n      .then((response) => {\n        expect(response).property('status').to.equal(201) // new entity created\n        expect(response).property('body').to.contain({\n          title: 'Cypress Test Runner',\n        })\n\n        // we don't know the exact post id - only that it will be > 100\n        // since JSONPlaceholder has built-in 100 posts\n        expect(response.body).property('id').to.be.a('number')\n          .and.to.be.gt(100)\n\n        // we don't know the user id here - since it was in above closure\n        // so in this test just confirm that the property is there\n        expect(response.body).property('userId').to.be.a('number')\n      })\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cypress-io/cypress-example-kitchensink/blob/b34a2352ce6ca7c606cadcbb0febcbb18849289c/cypress/e2e/2-advanced-examples/network_requests.cy.js#L53-L87",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=cypress%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "describe('My First Test', () => {\n  it('Visits the Kitchen Sink', () => {\n    cy.visit('https://example.cypress.io')\n  })\n})",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/cypress-io/cypress-documentation/blob/main/docs/app/get-started/writing-your-first-end-to-end-test.mdx",
                  "label": [
                    {
                      "t": "text",
                      "text": "writing-your-first-end-to-end-test.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "uvu",
          "name": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lukeed/uvu"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/uvu"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/uvu@0.5.6/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/uvu@0.5.6/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F215"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { test } from 'uvu';\nimport * as assert from 'uvu/assert';\n\ntest('Math.sqrt()', () => {\n  assert.is(Math.sqrt(4), 2);\n  assert.is(Math.sqrt(144), 12);\n  assert.is(Math.sqrt(2), Math.SQRT2);\n});\n\ntest.run();",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/uvu@0.5.6/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=uvu%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F215"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jasmine-core",
          "name": [
            {
              "t": "fact",
              "fact": "F230"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jasmine/jasmine"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jasmine-core"
            },
            {
              "label": "Docs",
              "href": "https://jasmine.github.io/api/7.0/Env.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://jasmine.github.io/api/7.0/Env.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F230"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/karma-runner/karma-jasmine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F248"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function createStartFn (karma, jasmineEnv) {\n  // This function will be assigned to `window.__karma__.start`:\n  return function () {\n    var clientConfig = karma.config || {}\n    var jasmineConfig = clientConfig.jasmine || {}\n\n    jasmineEnv = jasmineEnv || window.jasmine.getEnv()\n\n    jasmineConfig.specFilter = createSpecFilter(clientConfig, jasmineEnv)\n    jasmineEnv.configure(jasmineConfig)\n\n    window.jasmine.DEFAULT_TIMEOUT_INTERVAL = jasmineConfig.timeoutInterval ||\n      window.jasmine.DEFAULT_TIMEOUT_INTERVAL\n    jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))\n    jasmineEnv.execute()\n  }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/karma-runner/karma-jasmine/blob/057bf014c4ff0901a772dca7b04b7aaa5606a179/src/adapter.js#L497-L513",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=jasmine-core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F230"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "<link rel=\"stylesheet\" href=\"node_modules/jasmine-core/lib/jasmine-core/jasmine.css\">\n<script src=\"node_modules/jasmine-core/lib/jasmine-core/jasmine.js\"></script>\n<script src=\"node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js\"></script>\n<script src=\"node_modules/jasmine-core/lib/jasmine-core/boot.js\"></script>\n<script>\ndescribe(\"A suite\", function() {\n    it(\"contains a spec with an expectation\", function() {\n        expect(true).toBe(true);\n    });\n});\n</script>",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/jasmine/jasmine.github.io/blob/master/_tutorials/src/your_first_suite.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "your_first_suite.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F235"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "karma",
          "name": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/karma-runner/karma"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/karma"
            },
            {
              "label": "Docs",
              "href": "https://karma-runner.github.io/6.4/dev/public-api.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://karma-runner.github.io/6.4/dev/public-api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/karma-runner/grunt-karma",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F268"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function (grunt) {\n  grunt.registerMultiTask('karma', 'run karma.', function () {\n    var done = this.async()\n    var options = this.options({\n      background: false,\n      client: {}\n    })\n\n    // Allow for passing cli arguments to `client.args` using  `--grep=x`\n    var args = parseArgs(process.argv.slice(2))\n    if (options.client && _.isArray(options.client.args)) {\n      args = options.client.args.concat(args)\n    }\n\n    // If arguments are provided we pass them to karma\n    if (args.length > 0) {\n      if (!options.client) {\n        options.client = {}\n      }\n      options.client.args = args\n    }\n\n    // Only create client info if data is provided\n    if (options.client) {\n      // Merge karma default options\n      _.defaults(options.client, {\n        args: []\n      })\n    }\n\n    var opts = _.cloneDeep(options)\n    // Merge options onto data, with data taking precedence.\n    var data = _.merge(opts, this.data)\n\n    // But override the browsers array.\n    if (data.browsers && this.data.browsers) {\n      data.browsers = this.data.browsers\n    }\n\n    // Merge client.args\n    if (this.data.client && _.isArray(this.data.client.args)) {\n      data.client.args = this.data.client.args.concat(options.client.args)\n    }\n\n    if (data.configFile) {\n      data.configFile = path.resolve(data.configFile)\n    }\n\n    // Combines both sets of files. The order should be:\n    // - first, values from options.files,\n    // - then, values from this.files.\n    if (options.files || this.files.length) {\n      // For our 'files' option, we support arbitrarily nested arrays,\n      // as a convenient way to specify files without the user needing to\n      // concat or flatten anything within their Gruntfile.\n      data.files = _.flattenDeep(options.files || [])\n      // The 'files' task data expanded by Grunt internally produces\n      // a structure that is exactly 2 levels deep.\n      this.files.forEach((file) => {\n        file.src.forEach((src) => {\n          let obj = {\n            pattern: src\n          };\n          ['watched', 'served', 'included'].forEach((opt) => {\n            if (opt in file) {\n              obj[opt] = file[opt]\n            }\n          })\n          data.files.push(obj)\n        })\n      })\n    }\n\n    // Allow the use of templates in preprocessors\n    if (_.isPlainObject(data.preprocessors)) {\n      var preprocessors = {}\n      Object.keys(data.preprocessors).forEach(function (key) {\n        var value = data.preprocessors[key]\n        if (options.basePath) {\n          key = path.join(options.basePath, key)\n        }\n        key = path.resolve(key)\n        key = grunt.template.process(key)\n        preprocessors[key] = value\n      })\n      data.preprocessors = preprocessors\n    }\n\n    // support `karma run`, useful for grunt watch\n    if (this.flags.run) {\n      runner.run(data, finished.bind(done))\n      return\n    }\n\n    // allow karma to be run in the background so it doesn't block grunt\n    if (data.background) {\n      var backgroundProcess = require('child_process').fork(\n        path.join(__dirname, '..', 'lib', 'background.js')\n      )\n\n      backgroundProcess.on('close', function (code) {\n        var error = code\n        if (error) {\n          grunt.log.error('background karma process exited with error (code: ' + code + ')')\n        }\n      })\n\n      process.on('exit', function () {\n        backgroundProcess.kill()\n      })\n\n      backgroundProcess.send({ config: data })\n      done()\n    } else {\n      var parsedConfig = parseConfig(\n        data.configFile,\n        data,\n        {promiseConfig: true, throwErrors: true}\n      )\n      if (parsedConfig.then) {\n        parsedConfig.then(function (config) {\n          var server = new Server(config, finished.bind(done))\n          server.start()\n        })\n      } else {\n        // Support: Karma < 6\n        var server = new Server(data, finished.bind(done))\n        server.start()\n      }\n    }\n  })\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/karma-runner/grunt-karma/blob/e713d68fc7f6e938381a0a224f75cf671b34d41a/tasks/grunt-karma.js#L27-L158",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F267"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=karma%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const karma = require('karma')\n\nkarma.config.parseConfig(\n  './karma.conf.cjs',\n  { singleRun: true },\n  { promiseConfig: true, throwErrors: true }\n).then((config) => {\n  const server = new karma.Server(config, (code) => { process.exitCode = code })\n  return server.start()\n})",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://karma-runner.github.io/6.4/dev/public-api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "public-api.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F255"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript testing library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#vitest",
          "label": [
            {
              "t": "text",
              "text": "Vitest"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits projects that already use Vite configuration and plugins. "
        },
        {
          "t": "link",
          "href": "#jest",
          "label": [
            {
              "t": "text",
              "text": "Jest"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits codebases with an established Jest suite. "
        },
        {
          "t": "link",
          "href": "#playwright",
          "label": [
            {
              "t": "text",
              "text": "Playwright"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits end-to-end tests that drive real browsers."
        }
      ]
    },
    {
      "q": "What is Vitest?",
      "a": [
        {
          "t": "link",
          "href": "#vitest",
          "label": [
            {
              "t": "text",
              "text": "Vitest"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a test runner that reuses a project's Vite configuration and plugins. Test files go through the same transforms as the application code."
        }
      ]
    },
    {
      "q": "What is Jest?",
      "a": [
        {
          "t": "link",
          "href": "#jest",
          "label": [
            {
              "t": "text",
              "text": "Jest"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a JavaScript testing framework that bundles a test runner, assertions, and mocking in one package."
        }
      ]
    },
    {
      "q": "Playwright vs Cypress: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#playwright",
          "label": [
            {
              "t": "text",
              "text": "Playwright"
            }
          ]
        },
        {
          "t": "text",
          "text": " automates Chromium, Firefox, and WebKit from test code through a high-level API. "
        },
        {
          "t": "link",
          "href": "#cypress",
          "label": [
            {
              "t": "text",
              "text": "Cypress"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs front-end tests inside the browser alongside the app under test."
        }
      ]
    },
    {
      "q": "Vitest vs Jest: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#vitest",
          "label": [
            {
              "t": "text",
              "text": "Vitest"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits projects that build with Vite because it shares their configuration. "
        },
        {
          "t": "link",
          "href": "#jest",
          "label": [
            {
              "t": "text",
              "text": "Jest"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits projects with an existing Jest setup and no Vite build."
        }
      ]
    },
    {
      "q": "Jest vs Mocha: what is the difference?",
      "a": [
        {
          "t": "link",
          "href": "#mocha",
          "label": [
            {
              "t": "text",
              "text": "Mocha"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs tests with configurable reporters and pairs with a separate assertion library. "
        },
        {
          "t": "link",
          "href": "#jest",
          "label": [
            {
              "t": "text",
              "text": "Jest"
            }
          ]
        },
        {
          "t": "text",
          "text": " includes assertions and mocking in the same package."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, vitest",
      "display": "Vitest",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, vitest",
      "display": "680.0M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, vitest",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, vitest",
      "display": "5.0.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, vitest",
      "display": "v5.0.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, vitest",
      "display": "17.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Mocks functions, vitest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Measures code coverage, vitest",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Runs tests in parallel, vitest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Watches for changes, vitest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, vitest",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, vitest",
      "display": "npm install --save-dev vitest",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, vitest",
      "display": "Runs tests using the Vite project configuration and plugins.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, vitest",
      "display": "Reuses existing Vite configuration",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, vitest",
      "display": "Use the same Vite plugins and configuration for tests.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, vitest",
      "display": "Parallelizes across test files",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, vitest",
      "display": "Test files run across multiple workers by default.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, vitest",
      "display": "Coverage needs an extra package",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, vitest",
      "display": "Install the selected V8 or Istanbul coverage provider.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, vitest",
      "display": "Browser mode changes spying",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, vitest",
      "display": "Export spying with vi.spyOn needs a different approach in Browser Mode.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, vitest",
      "display": "import { expect, test } from 'vitest'\nimport { sum } from './sum.js'\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3)\n})\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, vitest",
      "display": "export async function launch(params: Frameworks.FrameworkLaunchParams): Promise<number> {\n    if (params.specs.length === 0 && (params.config.shard?.total ?? 1) > 1) {\n        log.info(`No specs to execute in shard ${params.config.shard!.current}/${params.config.shard!.total}, exiting!`)\n        return 0\n    }\n    let bridgeFailures = 0\n    // startVitest resolves only after the run, so the instance to cancel is captured while the run starts\n    let running: Vitest | undefined\n    let cancelRequested = params.signal?.aborted ?? false\n    const cancel = () => {\n        cancelRequested = true\n        running?.cancelCurrentRun('keyboard-input').catch((err) => log.warn('Failed to cancel the Vitest run:', err))\n    }\n    params.signal?.addEventListener('abort', cancel, { once: true })\n    const viteConfig = await toVitestConfig(params, () => bridgeFailures++)\n    const reporters = viteConfig.test!.reporters\n    viteConfig.test!.reporters = [...(reporters === undefined ? ['default'] : Array.isArray(reporters) ? reporters : [reporters]), {\n        onInit(instance: Vitest) {\n            running = instance\n            // Vitest's Logger exits the process 1ms after SIGINT/SIGTERM, before the launcher's exit handler finishes waiting on this launch\n            listenersBefore.forEach(([signal, before]) => process.listeners(signal).filter((listener) => !before.includes(listener)).forEach((listener) => process.off(signal, listener)))\n            if (cancelRequested) {\n                cancel()\n            }\n        }\n    }]\n    const listenersBefore = snapshotSignalListeners()\n    let vitest: Vitest | undefined\n    try {\n        vitest = await startVitest([], { run: true, watch: false, config: false }, viteConfig)\n        // a cancelled run leaves its tests skipped or pending, which would otherwise count as green\n        return countFailures(vitest) + bridgeFailures + (params.signal?.aborted ? 1 : 0)\n    } finally {\n        params.signal?.removeEventListener('abort', cancel)\n        await vitest?.close()\n    }\n}\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, vitest",
      "display": "index.ts · launch()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, vitest",
      "display": "webdriverio/webdriverio",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, webdriverio/webdriverio",
      "display": "9.9K",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, webdriverio/webdriverio",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F28": {
      "label": "Library name, jest",
      "display": "Jest",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, jest",
      "display": "230.6M",
      "asOf": "2026-11-15"
    },
    "F30": {
      "label": "License, jest",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, jest",
      "display": "30.5.2",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Undated package release, jest",
      "display": "v30.5.2",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Repository stars, jest",
      "display": "45.5K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Mocks functions, jest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Measures code coverage, jest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Runs tests in parallel, jest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Watches for changes, jest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Output formats, jest",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "Install, jest",
      "display": "npm install --save-dev jest",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "What it does, jest",
      "display": "Provides a JavaScript testing framework with its own runner and assertions.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, jest",
      "display": "Includes coverage collection",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, jest",
      "display": "Collect coverage through the coverage flag without adding a separate runner.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths lead, jest",
      "display": "Reruns tests after changes",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "strengths, jest",
      "display": "Watch changed files or rerun the entire suite with watchAll.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, jest",
      "display": "Babel skips type checking",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, jest",
      "display": "Run TypeScript checks separately when using Babel to transform tests.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, jest",
      "display": "const sum = require('./sum');\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3);\n});\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Library name, mocha",
      "display": "Mocha",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Monthly downloads, mocha",
      "display": "56.8M",
      "asOf": "2026-11-15"
    },
    "F50": {
      "label": "License, mocha",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Package release, mocha",
      "display": "12.0.3",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Undated package release, mocha",
      "display": "v12.0.3",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Repository stars, mocha",
      "display": "22.9K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Mocks functions, mocha",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Measures code coverage, mocha",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Runs tests in parallel, mocha",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Watches for changes, mocha",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Output formats, mocha",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Install, mocha",
      "display": "npm install --save-dev mocha",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "What it does, mocha",
      "display": "Runs tests in Node.js and browsers with configurable reporting and parallel execution.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, mocha",
      "display": "Supports programmatic runner setup",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, mocha",
      "display": "Add test files and run them through a configured Mocha instance.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, mocha",
      "display": "Exports test results as JSON",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, mocha",
      "display": "Write the JSON report directly to a selected file.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, mocha",
      "display": "Mocks need a separate library",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, mocha",
      "display": "Add Sinon for spies and configurable function replacements.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, mocha",
      "display": "Parallel mode rejects exclusive tests",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, mocha",
      "display": "Remove it.only and describe.only before running tests in parallel.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Quickstart, mocha",
      "display": "import Mocha from \"mocha\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\n// Instantiate a Mocha instance.\nconst mocha = new Mocha();\n\nconst testDir = \"some/dir/test\";\n\n// Add each .js file to the mocha instance\nfs.readdirSync(testDir)\n  .filter(function (file) {\n    // Only keep the .js files\n    return file.endsWith(\".js\");\n  })\n  .forEach(function (file) {\n    mocha.addFile(path.join(testDir, file));\n  });\n\n// Run the tests.\nmocha.run(function (failures) {\n  process.exitCode = failures ? 1 : 0; // exit with non-zero status if there were failures\n});\n",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project function, mocha",
      "display": "async init() {\n        const { mochaOpts } = this._config\n        if (Array.isArray(mochaOpts.require)) {\n            const plugins = await handleRequires(\n                mochaOpts.require\n                    .filter((p) => typeof p === 'string')\n                    .map((p) => path.resolve(this._config.rootDir, p))\n            )\n            Object.assign(mochaOpts, plugins)\n        }\n\n        applyMochaDefaults(mochaOpts)\n\n        const mocha = this._mocha = new Mocha(mochaOpts)\n        mocha.reporter(NOOP as unknown as Mocha.Reporter)\n        mocha.fullTrace()\n\n        /**\n         * as Mocha doesn't support file:// formats yet we have to\n         * remove it before adding it to Mocha\n         */\n        this._specs.forEach((spec) => mocha.addFile(specFilePath(spec)))\n\n        const { beforeTest, beforeHook, afterTest, afterHook } = this._config\n        mocha.suite.on('pre-require', () =>\n            setupEnv(this._cid, this._config.mochaOpts, beforeTest, beforeHook, afterTest, afterHook))\n        mocha.suite.on('require', () => mocha.unloadFiles())\n        await this._loadFiles(mochaOpts)\n        return this\n    }\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function reference, mocha",
      "display": "index.ts · init()",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project repository, mocha",
      "display": "webdriverio/webdriverio",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project stars, webdriverio/webdriverio",
      "display": "9.9K",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project push date, webdriverio/webdriverio",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F75": {
      "label": "Library name, jasmine",
      "display": "Jasmine",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Monthly downloads, jasmine",
      "display": "5.3M",
      "asOf": "2026-11-15"
    },
    "F77": {
      "label": "License, jasmine",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Package release, jasmine",
      "display": "7.0.0",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Undated package release, jasmine",
      "display": "v7.0.0",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Repository stars, jasmine",
      "display": "379",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Mocks functions, jasmine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Runs tests in parallel, jasmine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Install, jasmine",
      "display": "npm install --save-dev jasmine",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "What it does, jasmine",
      "display": "Runs Jasmine specifications under Node.js with a configurable runner and reporters.",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths lead, jasmine",
      "display": "Includes function spies",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths, jasmine",
      "display": "Stub functions and inspect their calls with built-in spies.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, jasmine",
      "display": "Runs suites across workers",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, jasmine",
      "display": "Use the shipped ParallelRunner to execute a suite in parallel.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations lead, jasmine",
      "display": "Replaces the default reporter",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations, jasmine",
      "display": "Adding a custom reporter removes the automatic ConsoleReporter.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Quickstart, jasmine",
      "display": "// CommonJS\nconst Jasmine = require('jasmine');\nconst runner = new Jasmine();\n\nrunner.loadConfigFile('spec/support/jasmine.json')\n    .then(function() {\n        runner.configureDefaultReporter({\n            showColors: false\n        });\n        runner.execute();\n    });\n",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Project function, jasmine",
      "display": "async _loadFiles() {\n        try {\n            if (Array.isArray(this._jasmineOpts.requires)) {\n                // @ts-ignore outdated types\n                this._jrunner.addRequires(this._jasmineOpts.requires)\n            }\n            if (Array.isArray(this._jasmineOpts.helpers)) {\n                this._jrunner.addMatchingHelperFiles(this._jasmineOpts.helpers)\n            }\n            // @ts-ignore outdated types\n            await this._jrunner.loadRequires()\n            await this._jrunner.loadHelpers()\n            await this._jrunner.loadSpecs()\n            // @ts-ignore outdated types\n            this._grep(this._jrunner.env.topSuite())\n            this._hasTests = this._totalTests > 0\n        } catch (err) {\n            log.warn(\n                'Unable to load spec files quite likely because they rely on `browser` object that is not fully initialized.\\n' +\n                '`browser` object has only `capabilities` and some flags like `isMobile`.\\n' +\n                'Helper files that use other `browser` commands have to be moved to `before` hook.\\n' +\n                `Spec file(s): ${this._specs.join(',')}\\n`,\n                'Error: ', err\n            )\n        }\n    }\n",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project function reference, jasmine",
      "display": "index.ts · _loadFiles()",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project repository, jasmine",
      "display": "webdriverio/webdriverio",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project stars, webdriverio/webdriverio",
      "display": "9.9K",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project push date, webdriverio/webdriverio",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F97": {
      "label": "Developer need",
      "display": "Included coverage collection",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose jest",
      "display": "coverage collection configured through the runner",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "included coverage collection",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "When to consider vitest",
      "display": "the tests should reuse an existing Vite configuration",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Existing Vite projects",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose vitest",
      "display": "reusing Vite project plugins and configuration",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "existing Vite projects",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "When to consider jest",
      "display": "coverage should be configured through the included runner",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Custom runner integrations",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose mocha",
      "display": "programmatic test-file selection and runner setup",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "custom runner integrations",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider jasmine",
      "display": "function spies should come with the testing framework",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Built-in function spies",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose jasmine",
      "display": "function stubs with call tracking",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "built-in function spies",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Page introduction",
      "display": "JavaScript testing libraries let developers write and run automated software tests.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Which JavaScript testing library should I choose?",
      "display": "Jest includes coverage collection through its runner.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which JavaScript testing library should I choose?",
      "display": "Vitest reuses Vite configuration and plugins.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which JavaScript testing library should I choose?",
      "display": "Mocha provides a programmatic runner API.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which JavaScript testing library should I choose?",
      "display": "Jasmine includes function spies.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does Vitest require an extra package for coverage?",
      "display": "The V8 and Istanbul coverage providers are optional packages.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does Jest type-check TypeScript tests when using Babel?",
      "display": "Babel transpiles the tests; run the TypeScript compiler separately for type checking.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can Vitest use the existing Vite configuration?",
      "display": "Vitest reads the Vite configuration by default and uses its plugins.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does Mocha include mocking tools?",
      "display": "Mocha uses a separate library such as Sinon for spies.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Does Mocha include mocking tools?",
      "display": "Sinon stubs replace functions with pre-programmed behavior.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can Mocha use exclusive tests in parallel mode?",
      "display": "Parallel mode rejects exclusive it.only and describe.only tests.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does Mocha preserve test-file order in parallel mode?",
      "display": "Parallel mode does not guarantee test-file order or the worker assigned to a file.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can Jasmine run specifications in parallel?",
      "display": "The shipped ParallelRunner configures and executes a suite in parallel.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: What happens when a Jasmine integration adds a reporter?",
      "display": "Adding a reporter disables the automatically added ConsoleReporter; multiple custom reporters can be added.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Which runners write test-result files in JSON?",
      "display": "Jest writes results to a file when json and outputFile are used together.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Which runners write test-result files in JSON?",
      "display": "Vitest provides a JSON report compatible with Jest.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Which runners write test-result files in JSON?",
      "display": "Mocha can write its JSON reporter output directly to a file.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Library name, vitest",
      "display": "Vitest",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Monthly downloads, vitest",
      "display": "696.6M",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "License, vitest",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release, vitest",
      "display": "5.1.1",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Package release date, vitest",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Install, vitest",
      "display": "npm install --save-dev vitest@5.1.1",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Quickstart, vitest",
      "display": "import { expect, test } from 'vitest'\n\nexport function sum(a, b) {\n  return a + b\n}\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3)\n})",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Repository stars, vitest",
      "display": "17.4K",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Real-browser support, vitest",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Assertions included, vitest",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Function spies included, vitest",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Execution and integration model, vitest",
      "display": "Vite-powered runner with imported test/expect, built-in vi mocking, and optional real-browser providers.",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Application context, vitest",
      "display": "Projects that already use Vite transforms/configuration and need an integrated unit-testing/mocking stack.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project function, vitest",
      "display": "export async function launch(params: Frameworks.FrameworkLaunchParams): Promise<number> {\n    if (params.specs.length === 0 && (params.config.shard?.total ?? 1) > 1) {\n        log.info(`No specs to execute in shard ${params.config.shard!.current}/${params.config.shard!.total}, exiting!`)\n        return 0\n    }\n    let bridgeFailures = 0\n    // startVitest resolves only after the run, so the instance to cancel is captured while the run starts\n    let running: Vitest | undefined\n    let cancelRequested = params.signal?.aborted ?? false\n    const cancel = () => {\n        cancelRequested = true\n        running?.cancelCurrentRun('keyboard-input').catch((err) => log.warn('Failed to cancel the Vitest run:', err))\n    }\n    params.signal?.addEventListener('abort', cancel, { once: true })\n    const viteConfig = await toVitestConfig(params, () => bridgeFailures++)\n    const reporters = viteConfig.test!.reporters\n    viteConfig.test!.reporters = [...(reporters === undefined ? ['default'] : Array.isArray(reporters) ? reporters : [reporters]), {\n        onInit(instance: Vitest) {\n            running = instance\n            // Vitest's Logger exits the process 1ms after SIGINT/SIGTERM, before the launcher's exit handler finishes waiting on this launch\n            listenersBefore.forEach(([signal, before]) => process.listeners(signal).filter((listener) => !before.includes(listener)).forEach((listener) => process.off(signal, listener)))\n            if (cancelRequested) {\n                cancel()\n            }\n        }\n    }]\n    const listenersBefore = snapshotSignalListeners()\n    let vitest: Vitest | undefined\n    try {\n        vitest = await startVitest([], { run: true, watch: false, config: false }, viteConfig)\n        // a cancelled run leaves its tests skipped or pending, which would otherwise count as green\n        return countFailures(vitest) + bridgeFailures + (params.signal?.aborted ? 1 : 0)\n    } finally {\n        params.signal?.removeEventListener('abort', cancel)\n        await vitest?.close()\n    }\n}",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project source file, vitest",
      "display": "packages/wdio-vitest-framework/src/index.ts",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project full_name, vitest",
      "display": "webdriverio/webdriverio",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project stargazers_count, vitest",
      "display": "9.9K",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Library name, playwright",
      "display": "Playwright",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, playwright",
      "display": "642.0M",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, playwright",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, playwright",
      "display": "1.65.1",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, playwright",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, playwright",
      "display": "npm install --save-dev @playwright/test@1.65.1",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, playwright",
      "display": "import { test, expect } from '@playwright/test';\n\ntest('has title', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n\n  // Expect a title \"to contain\" a substring.\n  await expect(page).toHaveTitle(/Playwright/);\n});",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Official description, playwright",
      "display": "Automates web browsers through a high-level API.",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart source file, playwright",
      "display": "docs/src/writing-tests-js.md",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Repository stars, playwright",
      "display": "100.5K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Real-browser support, playwright",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Assertions included, playwright",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Function spies included, playwright",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Execution and integration model, playwright",
      "display": "Node-hosted end-to-end tests control isolated real-browser pages through fixtures, locators, network interception, and retrying assertions.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Application context, playwright",
      "display": "Browser end-to-end journeys, browser-isolated fixtures, and interception of real application HTTP responses.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Distribution and download scope, playwright",
      "display": "The broader playwright package publishes the real playwright/test runner API. @playwright/test1.65.1 is its identity facade and recommended test-only installation; its separate counter is not added or substituted.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Library name, jest",
      "display": "Jest",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Monthly downloads, jest",
      "display": "237.5M",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "License, jest",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release, jest",
      "display": "30.5.2",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release date, jest",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Install, jest",
      "display": "npm install --save-dev jest@30.5.2",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart, jest",
      "display": "function sum(a, b) {\n  return a + b;\n}\nmodule.exports = sum;\n\ntest('adds 1 + 2 to equal 3', () => {\n  expect(sum(1, 2)).toBe(3);\n});",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Repository stars, jest",
      "display": "45.5K",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Real-browser support, jest",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Assertions included, jest",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Function spies included, jest",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Execution and integration model, jest",
      "display": "Node-hosted test runner with its own global assertion/mock stack and optional documented Puppeteer integration.",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Application context, jest",
      "display": "Existing Jest suites or projects choosing its integrated assertions/mocks; reported2025 survey adoption is distinct from current package-download ordering.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project function, jest",
      "display": "export async function jestExecutor(\n  options: JestExecutorOptions,\n  context: ExecutorContext\n): Promise<{ success: boolean }> {\n  warnJestExecutorDeprecation();\n\n  // Jest registers ts-node with module CJS https://github.com/SimenB/jest/blob/v29.6.4/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L117-L119\n  // We want to support of ESM via 'module':'nodenext', we need to override the resolution until Jest supports it.\n  const existingValue = process.env['TS_NODE_COMPILER_OPTIONS'];\n  process.env['TS_NODE_COMPILER_OPTIONS'] = JSON.stringify({\n    ...(existingValue ? JSON.parse(existingValue) : {}),\n    moduleResolution: 'Node10',\n    module: 'commonjs',\n    customConditions: null,\n  });\n\n  const config = await parseJestConfig(options, context);\n\n  const { results } = await runCLI(config, [options.jestConfig]);\n  return { success: results.success };\n}",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project source file, jest",
      "display": "packages/jest/src/executors/jest/jest.impl.ts",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project full_name, jest",
      "display": "nrwl/nx",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project stargazers_count, jest",
      "display": "29.5K",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, mocha",
      "display": "Mocha",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, mocha",
      "display": "58.3M",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, mocha",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, mocha",
      "display": "12.0.3",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, mocha",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, mocha",
      "display": "npm install --save-dev mocha@12.0.3",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, mocha",
      "display": "// test/example.test.js\nimport assert from \"node:assert\";\n\ndescribe(\"Array\", function () {\n  describe(\"#indexOf()\", function () {\n    it(\"should return -1 when the value is not present\", function () {\n      assert.equal([1, 2, 3].indexOf(4), -1);\n    });\n  });\n});",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Repository stars, mocha",
      "display": "22.9K",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Real-browser support, mocha",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Assertions included, mocha",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Function spies included, mocha",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Execution and integration model, mocha",
      "display": "Node or browser test framework; callers choose an assertion library and may integrate custom reporters or runner hosts.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Application context, mocha",
      "display": "Existing Mocha suites and projects choosing their assertion library or embedding the runner in a larger tool.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project function, mocha",
      "display": "async init() {\n        const { mochaOpts } = this._config\n        if (Array.isArray(mochaOpts.require)) {\n            const plugins = await handleRequires(\n                mochaOpts.require\n                    .filter((p) => typeof p === 'string')\n                    .map((p) => path.resolve(this._config.rootDir, p))\n            )\n            Object.assign(mochaOpts, plugins)\n        }\n\n        applyMochaDefaults(mochaOpts)\n\n        const mocha = this._mocha = new Mocha(mochaOpts)\n        mocha.reporter(NOOP as unknown as Mocha.Reporter)\n        mocha.fullTrace()\n\n        /**\n         * as Mocha doesn't support file:// formats yet we have to\n         * remove it before adding it to Mocha\n         */\n        this._specs.forEach((spec) => mocha.addFile(specFilePath(spec)))\n\n        const { beforeTest, beforeHook, afterTest, afterHook } = this._config\n        mocha.suite.on('pre-require', () =>\n            setupEnv(this._cid, this._config.mochaOpts, beforeTest, beforeHook, afterTest, afterHook))\n        mocha.suite.on('require', () => mocha.unloadFiles())\n        await this._loadFiles(mochaOpts)\n        return this\n    }",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project source file, mocha",
      "display": "packages/wdio-mocha-framework/src/index.ts",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project full_name, mocha",
      "display": "webdriverio/webdriverio",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project stargazers_count, mocha",
      "display": "9.9K",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Library name, cypress",
      "display": "Cypress",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Monthly downloads, cypress",
      "display": "29.7M",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "License, cypress",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release, cypress",
      "display": "16.3.0",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release date, cypress",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Install, cypress",
      "display": "npm install --save-dev cypress@16.3.0",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Quickstart, cypress",
      "display": "describe('My First Test', () => {\n  it('Visits the Kitchen Sink', () => {\n    cy.visit('https://example.cypress.io')\n  })\n})",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Official description, cypress",
      "display": "Tests front-end web apps in the browser.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Quickstart source file, cypress",
      "display": "docs/app/get-started/writing-your-first-end-to-end-test.mdx",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Repository stars, cypress",
      "display": "51.0K",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Real-browser support, cypress",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Assertions included, cypress",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Function spies included, cypress",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Execution and integration model, cypress",
      "display": "Browser-oriented end-to-end runner with Cypress command queues, HTTP-test helpers, assertions, and Sinon-backed spies.",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Application context, cypress",
      "display": "End-to-end application testing with the Cypress browser runner and its command-queue model.",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project function, cypress",
      "display": "() => {\n    // first, let's find out the userId of the first user we have\n    cy.request('http://localhost:8080/users?_limit=1')\n      .its('body') // yields the response object\n      .its('0') // yields the first element of the returned list\n      // the above two commands its('body').its('0')\n      // can be written as its('body.0')\n      // if you do not care about TypeScript checks\n      .then((user) => {\n        expect(user).property('id').to.be.a('number')\n        // make a new post on behalf of the user\n        cy.request('POST', 'http://localhost:8080/posts', {\n          userId: user.id,\n          title: 'Cypress Test Runner',\n          body: 'Fast, easy and reliable testing for anything that runs in a browser.',\n        })\n      })\n      // note that the value here is the returned value of the 2nd request\n      // which is the new post object\n      .then((response) => {\n        expect(response).property('status').to.equal(201) // new entity created\n        expect(response).property('body').to.contain({\n          title: 'Cypress Test Runner',\n        })\n\n        // we don't know the exact post id - only that it will be > 100\n        // since JSONPlaceholder has built-in 100 posts\n        expect(response.body).property('id').to.be.a('number')\n          .and.to.be.gt(100)\n\n        // we don't know the user id here - since it was in above closure\n        // so in this test just confirm that the property is there\n        expect(response.body).property('userId').to.be.a('number')\n      })\n  }",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project source file, cypress",
      "display": "cypress/e2e/2-advanced-examples/network_requests.cy.js",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project full_name, cypress",
      "display": "cypress-io/cypress-example-kitchensink",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Project stargazers_count, cypress",
      "display": "1.2K",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Library name, uvu",
      "display": "uvu",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Monthly downloads, uvu",
      "display": "27.1M",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "License, uvu",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Package release, uvu",
      "display": "0.5.6",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Package release date, uvu",
      "display": "Jul 2022",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Install, uvu",
      "display": "npm install --save-dev uvu@0.5.6",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart, uvu",
      "display": "import { test } from 'uvu';\nimport * as assert from 'uvu/assert';\n\ntest('Math.sqrt()', () => {\n  assert.is(Math.sqrt(4), 2);\n  assert.is(Math.sqrt(144), 12);\n  assert.is(Math.sqrt(2), Math.SQRT2);\n});\n\ntest.run();",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Official description, uvu",
      "display": "Runs tests in Node.js and the browser.",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Quickstart source file, uvu",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Repository stars, uvu",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Real-browser support, uvu",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Assertions included, uvu",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Function spies included, uvu",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Execution and integration model, uvu",
      "display": "Standalone Node/browser test modules with explicit imports, an explicit test.run call, and assertions in the same uvu package.",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Application context, uvu",
      "display": "Explicitly launched small test modules and a separate bundled assertion namespace, without adopting Vite or Jest configuration.",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Library name, jasmine-core",
      "display": "Jasmine",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Monthly downloads, jasmine-core",
      "display": "24.7M",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "License, jasmine-core",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Package release, jasmine-core",
      "display": "7.0.2",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release date, jasmine-core",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Install, jasmine-core",
      "display": "npm install --save-dev jasmine-core@7.0.2",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Quickstart, jasmine-core",
      "display": "<link rel=\"stylesheet\" href=\"node_modules/jasmine-core/lib/jasmine-core/jasmine.css\">\n<script src=\"node_modules/jasmine-core/lib/jasmine-core/jasmine.js\"></script>\n<script src=\"node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js\"></script>\n<script src=\"node_modules/jasmine-core/lib/jasmine-core/boot.js\"></script>\n<script>\ndescribe(\"A suite\", function() {\n    it(\"contains a spec with an expectation\", function() {\n        expect(true).toBe(true);\n    });\n});\n</script>",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Official description, jasmine-core",
      "display": "Provides a testing framework for browsers and Node.js.",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Quickstart source file, jasmine-core",
      "display": "_tutorials/src/your_first_suite.js",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Repository stars, jasmine-core",
      "display": "15.8K",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Real-browser support, jasmine-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Assertions included, jasmine-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Function spies included, jasmine-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Execution and integration model, jasmine-core",
      "display": "Testing-framework core with browser assets, suite/spec DSL, assertions, and spies. The jasmine Node CLI is a separate distribution in the same family.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Application context, jasmine-core",
      "display": "Existing Jasmine suites or browser harnesses needing the complete assertion/spy DSL; use the separate CLI when Node file loading/orchestration is required.",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Core versus CLI, jasmine-core",
      "display": "Main metric is jasmine-core only; jasmine CLI and jasmine-browser-runner are companion distributions, not independent framework-family counts.",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project function, jasmine-core",
      "display": "function createStartFn (karma, jasmineEnv) {\n  // This function will be assigned to `window.__karma__.start`:\n  return function () {\n    var clientConfig = karma.config || {}\n    var jasmineConfig = clientConfig.jasmine || {}\n\n    jasmineEnv = jasmineEnv || window.jasmine.getEnv()\n\n    jasmineConfig.specFilter = createSpecFilter(clientConfig, jasmineEnv)\n    jasmineEnv.configure(jasmineConfig)\n\n    window.jasmine.DEFAULT_TIMEOUT_INTERVAL = jasmineConfig.timeoutInterval ||\n      window.jasmine.DEFAULT_TIMEOUT_INTERVAL\n    jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))\n    jasmineEnv.execute()\n  }\n}",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Project source file, jasmine-core",
      "display": "src/adapter.js",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Project full_name, jasmine-core",
      "display": "karma-runner/karma-jasmine",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Project stargazers_count, jasmine-core",
      "display": "536",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Library name, karma",
      "display": "Karma",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Monthly downloads, karma",
      "display": "14.7M",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "License, karma",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Package release, karma",
      "display": "6.4.4",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Package release date, karma",
      "display": "Jul 2024",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Install, karma",
      "display": "npm install --save-dev karma@6.4.4 karma-jasmine karma-chrome-launcher",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Quickstart, karma",
      "display": "const karma = require('karma')\n\nkarma.config.parseConfig(\n  './karma.conf.cjs',\n  { singleRun: true },\n  { promiseConfig: true, throwErrors: true }\n).then((config) => {\n  const server = new karma.Server(config, (code) => { process.exitCode = code })\n  return server.start()\n})",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Official description, karma",
      "display": "Runs JavaScript test suites.",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Quickstart source file, karma",
      "display": "public-api.html",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Repository stars, karma",
      "display": "12.0K",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Real-browser support, karma",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Assertions included, karma",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Function spies included, karma",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Execution and integration model, karma",
      "display": "Real-browser test host/orchestrator that loads configured framework adapters. Browser launchers are plugins; manual capture also works. The publisher declares the project deprecated.",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Application context, karma",
      "display": "Maintaining an existing Karma browser/Grunt test configuration; publisher deprecation is material for a new-project decision.",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Publisher maintenance status, karma",
      "display": "Deprecated; not accepting new features or general bug fixes.",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Project function, karma",
      "display": "function (grunt) {\n  grunt.registerMultiTask('karma', 'run karma.', function () {\n    var done = this.async()\n    var options = this.options({\n      background: false,\n      client: {}\n    })\n\n    // Allow for passing cli arguments to `client.args` using  `--grep=x`\n    var args = parseArgs(process.argv.slice(2))\n    if (options.client && _.isArray(options.client.args)) {\n      args = options.client.args.concat(args)\n    }\n\n    // If arguments are provided we pass them to karma\n    if (args.length > 0) {\n      if (!options.client) {\n        options.client = {}\n      }\n      options.client.args = args\n    }\n\n    // Only create client info if data is provided\n    if (options.client) {\n      // Merge karma default options\n      _.defaults(options.client, {\n        args: []\n      })\n    }\n\n    var opts = _.cloneDeep(options)\n    // Merge options onto data, with data taking precedence.\n    var data = _.merge(opts, this.data)\n\n    // But override the browsers array.\n    if (data.browsers && this.data.browsers) {\n      data.browsers = this.data.browsers\n    }\n\n    // Merge client.args\n    if (this.data.client && _.isArray(this.data.client.args)) {\n      data.client.args = this.data.client.args.concat(options.client.args)\n    }\n\n    if (data.configFile) {\n      data.configFile = path.resolve(data.configFile)\n    }\n\n    // Combines both sets of files. The order should be:\n    // - first, values from options.files,\n    // - then, values from this.files.\n    if (options.files || this.files.length) {\n      // For our 'files' option, we support arbitrarily nested arrays,\n      // as a convenient way to specify files without the user needing to\n      // concat or flatten anything within their Gruntfile.\n      data.files = _.flattenDeep(options.files || [])\n      // The 'files' task data expanded by Grunt internally produces\n      // a structure that is exactly 2 levels deep.\n      this.files.forEach((file) => {\n        file.src.forEach((src) => {\n          let obj = {\n            pattern: src\n          };\n          ['watched', 'served', 'included'].forEach((opt) => {\n            if (opt in file) {\n              obj[opt] = file[opt]\n            }\n          })\n          data.files.push(obj)\n        })\n      })\n    }\n\n    // Allow the use of templates in preprocessors\n    if (_.isPlainObject(data.preprocessors)) {\n      var preprocessors = {}\n      Object.keys(data.preprocessors).forEach(function (key) {\n        var value = data.preprocessors[key]\n        if (options.basePath) {\n          key = path.join(options.basePath, key)\n        }\n        key = path.resolve(key)\n        key = grunt.template.process(key)\n        preprocessors[key] = value\n      })\n      data.preprocessors = preprocessors\n    }\n\n    // support `karma run`, useful for grunt watch\n    if (this.flags.run) {\n      runner.run(data, finished.bind(done))\n      return\n    }\n\n    // allow karma to be run in the background so it doesn't block grunt\n    if (data.background) {\n      var backgroundProcess = require('child_process').fork(\n        path.join(__dirname, '..', 'lib', 'background.js')\n      )\n\n      backgroundProcess.on('close', function (code) {\n        var error = code\n        if (error) {\n          grunt.log.error('background karma process exited with error (code: ' + code + ')')\n        }\n      })\n\n      process.on('exit', function () {\n        backgroundProcess.kill()\n      })\n\n      backgroundProcess.send({ config: data })\n      done()\n    } else {\n      var parsedConfig = parseConfig(\n        data.configFile,\n        data,\n        {promiseConfig: true, throwErrors: true}\n      )\n      if (parsedConfig.then) {\n        parsedConfig.then(function (config) {\n          var server = new Server(config, finished.bind(done))\n          server.start()\n        })\n      } else {\n        // Support: Karma < 6\n        var server = new Server(data, finished.bind(done))\n        server.start()\n      }\n    }\n  })\n}",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Project source file, karma",
      "display": "tasks/grunt-karma.js",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Project full_name, karma",
      "display": "karma-runner/grunt-karma",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Project stargazers_count, karma",
      "display": "465",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript testing libraries Jest Vitest Mocha Jasmine examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
