# JavaScript testing libraries

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.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [Vitest](#vitest) | 696.6M | 17.4K | Nov 2026 | MIT |
| [Playwright](#playwright) | 642.0M | 100.5K | Nov 2026 | Apache-2.0 |
| [Jest](#jest) | 237.5M | 45.5K | Sep 2026 | MIT |
| [Mocha](#mocha) | 58.3M | 22.9K | Oct 2026 | MIT |
| [Cypress](#cypress) | 29.7M | 51.0K | Nov 2026 | MIT |
| [uvu](#uvu) | 27.1M | 3.0K | Jul 2022 | MIT |
| [Jasmine](#jasmine-core) | 24.7M | 15.8K | Aug 2026 | MIT |
| [Karma](#karma) | 14.7M | 12.0K | Jul 2024 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[Vitest](#vitest) has the most monthly downloads in this comparison, at 680.0M.

## Capabilities

| Library | Real-browser support | Assertions included | Function spies included |
| --- | --- | --- | --- |
| [Vitest](#vitest) | Via plugin | Yes | Yes |
| [Playwright](#playwright) | Yes | Yes | No |
| [Jest](#jest) | Via plugin | Yes | Yes |
| [Mocha](#mocha) | Yes | No | No |
| [Cypress](#cypress) | Yes | Yes | Yes |
| [uvu](#uvu) | Yes | Yes | No |
| [Jasmine](#jasmine-core) | Yes | Yes | Yes |
| [Karma](#karma) | Yes | Via plugin | Via plugin |

## Libraries

### Vitest

[GitHub](https://github.com/vitest-dev/vitest) · [npm](https://www.npmjs.com/package/vitest) · [Docs](https://vitest.dev/guide/)

Runs tests using the Vite project configuration and plugins.

- Downloads / mo: 696.6M
- Stars: 17.4K
- Last release: 5.1.1
- License: MIT
- Capabilities: [From the Vitest docs](https://vitest.dev/guide/)

**Strengths**

- **Reuses existing Vite configuration.** Use the same Vite plugins and configuration for tests.
- **Parallelizes across test files.** Test files run across multiple workers by default.

**Watch out for**

- **Coverage needs an extra package.** Install the selected V8 or Istanbul coverage provider.
- **Browser mode changes spying.** Export spying with vi.spyOn needs a different approach in Browser Mode.

```sh
npm install --save-dev vitest@5.1.1
```

**webdriverio/webdriverio** (9.9K stars)

[webdriverio/webdriverio](https://github.com/webdriverio/webdriverio) 

```typescript
export async function launch(params: Frameworks.FrameworkLaunchParams): Promise<number> {
    if (params.specs.length === 0 && (params.config.shard?.total ?? 1) > 1) {
        log.info(`No specs to execute in shard ${params.config.shard!.current}/${params.config.shard!.total}, exiting!`)
        return 0
    }
    let bridgeFailures = 0
    // startVitest resolves only after the run, so the instance to cancel is captured while the run starts
    let running: Vitest | undefined
    let cancelRequested = params.signal?.aborted ?? false
    const cancel = () => {
        cancelRequested = true
        running?.cancelCurrentRun('keyboard-input').catch((err) => log.warn('Failed to cancel the Vitest run:', err))
    }
    params.signal?.addEventListener('abort', cancel, { once: true })
    const viteConfig = await toVitestConfig(params, () => bridgeFailures++)
    const reporters = viteConfig.test!.reporters
    viteConfig.test!.reporters = [...(reporters === undefined ? ['default'] : Array.isArray(reporters) ? reporters : [reporters]), {
        onInit(instance: Vitest) {
            running = instance
            // Vitest's Logger exits the process 1ms after SIGINT/SIGTERM, before the launcher's exit handler finishes waiting on this launch
            listenersBefore.forEach(([signal, before]) => process.listeners(signal).filter((listener) => !before.includes(listener)).forEach((listener) => process.off(signal, listener)))
            if (cancelRequested) {
                cancel()
            }
        }
    }]
    const listenersBefore = snapshotSignalListeners()
    let vitest: Vitest | undefined
    try {
        vitest = await startVitest([], { run: true, watch: false, config: false }, viteConfig)
        // a cancelled run leaves its tests skipped or pending, which would otherwise count as green
        return countFailures(vitest) + bridgeFailures + (params.signal?.aborted ? 1 : 0)
    } finally {
        params.signal?.removeEventListener('abort', cancel)
        await vitest?.close()
    }
}
```

[packages/wdio-vitest-framework/src/index.ts](https://github.com/webdriverio/webdriverio/blob/4ef7adc33d43987bc1c6bcce9cc60ddfef29b7e7/packages/wdio-vitest-framework/src/index.ts#L29-L65) · [More projects using Vitest →](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)

**Quickstart**

```typescript
import { expect, test } from 'vitest'

export function sum(a, b) {
  return a + b
}

test('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3)
})
```

From [index.md](https://github.com/vitest-dev/vitest/blob/v5.1.1/docs/guide/index.md)

### Playwright

[GitHub](https://github.com/microsoft/playwright) · [npm](https://www.npmjs.com/package/playwright) · [Docs](https://playwright.dev/docs/intro)

Automates web browsers through a high-level API.

- Downloads / mo: 642.0M
- Stars: 100.5K
- Last release: 1.65.1
- License: Apache-2.0
- Capabilities: [From the Playwright docs](https://playwright.dev/docs/intro)

```sh
npm install --save-dev @playwright/test@1.65.1
```

**Quickstart**

```typescript
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
  await page.goto('https://playwright.dev/');

  // Expect a title "to contain" a substring.
  await expect(page).toHaveTitle(/Playwright/);
});
```

From [writing-tests-js.md](https://github.com/microsoft/playwright/blob/v1.65.1/docs/src/writing-tests-js.md) · [Find projects using Playwright →](https://dashboard.exa.ai/playground/search?q=playwright%20GitHub%20projects)

### Jest

[GitHub](https://github.com/jestjs/jest) · [npm](https://www.npmjs.com/package/jest) · [Docs](https://jestjs.io/docs/getting-started)

Provides a JavaScript testing framework with its own runner and assertions.

- Downloads / mo: 237.5M
- Stars: 45.5K
- Last release: 30.5.2
- License: MIT
- Capabilities: [From the Jest docs](https://jestjs.io/docs/getting-started)

**Strengths**

- **Includes coverage collection.** Collect coverage through the coverage flag without adding a separate runner.
- **Reruns tests after changes.** Watch changed files or rerun the entire suite with watchAll.

**Watch out for**

- **Babel skips type checking.** Run TypeScript checks separately when using Babel to transform tests.

```sh
npm install --save-dev jest@30.5.2
```

**nrwl/nx** (29.5K stars)

[nrwl/nx](https://github.com/nrwl/nx) 

```typescript
export async function jestExecutor(
  options: JestExecutorOptions,
  context: ExecutorContext
): Promise<{ success: boolean }> {
  warnJestExecutorDeprecation();

  // Jest registers ts-node with module CJS https://github.com/SimenB/jest/blob/v29.6.4/packages/jest-config/src/readConfigFileAndSetRootDir.ts#L117-L119
  // We want to support of ESM via 'module':'nodenext', we need to override the resolution until Jest supports it.
  const existingValue = process.env['TS_NODE_COMPILER_OPTIONS'];
  process.env['TS_NODE_COMPILER_OPTIONS'] = JSON.stringify({
    ...(existingValue ? JSON.parse(existingValue) : {}),
    moduleResolution: 'Node10',
    module: 'commonjs',
    customConditions: null,
  });

  const config = await parseJestConfig(options, context);

  const { results } = await runCLI(config, [options.jestConfig]);
  return { success: results.success };
}
```

[packages/jest/src/executors/jest/jest.impl.ts](https://github.com/nrwl/nx/blob/ee0bc60a335663bbf1a4ded4efa57198bf6cf268/packages/jest/src/executors/jest/jest.impl.ts#L22-L42) · [More projects using Jest →](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)

**Quickstart**

```typescript
function sum(a, b) {
  return a + b;
}
module.exports = sum;

test('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3);
});
```

From [GettingStarted.md](https://github.com/jestjs/jest/blob/v30.5.2/docs/GettingStarted.md)

### Mocha

[GitHub](https://github.com/mochajs/mocha) · [npm](https://www.npmjs.com/package/mocha) · [Docs](https://mochajs.org/api/mocha)

Runs tests in Node.js and browsers with configurable reporting and parallel execution.

- Downloads / mo: 58.3M
- Stars: 22.9K
- Last release: 12.0.3
- License: MIT
- Capabilities: [From the Mocha docs](https://mochajs.org/api/mocha)

**Strengths**

- **Supports programmatic runner setup.** Add test files and run them through a configured Mocha instance.
- **Exports test results as JSON.** Write the JSON report directly to a selected file.

**Watch out for**

- **Mocks need a separate library.** Add Sinon for spies and configurable function replacements.
- **Parallel mode rejects exclusive tests.** Remove it.only and describe.only before running tests in parallel.

```sh
npm install --save-dev mocha@12.0.3
```

**webdriverio/webdriverio** (9.9K stars)

[webdriverio/webdriverio](https://github.com/webdriverio/webdriverio) 

```typescript
async init() {
        const { mochaOpts } = this._config
        if (Array.isArray(mochaOpts.require)) {
            const plugins = await handleRequires(
                mochaOpts.require
                    .filter((p) => typeof p === 'string')
                    .map((p) => path.resolve(this._config.rootDir, p))
            )
            Object.assign(mochaOpts, plugins)
        }

        applyMochaDefaults(mochaOpts)

        const mocha = this._mocha = new Mocha(mochaOpts)
        mocha.reporter(NOOP as unknown as Mocha.Reporter)
        mocha.fullTrace()

        /**
         * as Mocha doesn't support file:// formats yet we have to
         * remove it before adding it to Mocha
         */
        this._specs.forEach((spec) => mocha.addFile(specFilePath(spec)))

        const { beforeTest, beforeHook, afterTest, afterHook } = this._config
        mocha.suite.on('pre-require', () =>
            setupEnv(this._cid, this._config.mochaOpts, beforeTest, beforeHook, afterTest, afterHook))
        mocha.suite.on('require', () => mocha.unloadFiles())
        await this._loadFiles(mochaOpts)
        return this
    }
```

[packages/wdio-mocha-framework/src/index.ts](https://github.com/webdriverio/webdriverio/blob/4ef7adc33d43987bc1c6bcce9cc60ddfef29b7e7/packages/wdio-mocha-framework/src/index.ts#L74-L103) · [More projects using Mocha →](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)

**Quickstart**

```typescript
// test/example.test.js
import assert from "node:assert";

describe("Array", function () {
  describe("#indexOf()", function () {
    it("should return -1 when the value is not present", function () {
      assert.equal([1, 2, 3].indexOf(4), -1);
    });
  });
});
```

From [programmatic-usage.mdx](https://github.com/mochajs/mocha/blob/main/docs/src/content/docs/getting-started.mdx)

### Cypress

[GitHub](https://github.com/cypress-io/cypress) · [npm](https://www.npmjs.com/package/cypress) · [Docs](https://docs.cypress.io/api/commands/request)

Tests front-end web apps in the browser.

- Downloads / mo: 29.7M
- Stars: 51.0K
- Last release: 16.3.0
- License: MIT
- Capabilities: [From the Cypress docs](https://docs.cypress.io/api/commands/request)

```sh
npm install --save-dev cypress@16.3.0
```

**cypress-io/cypress-example-kitchensink** (1.2K stars)

[cypress-io/cypress-example-kitchensink](https://github.com/cypress-io/cypress-example-kitchensink) 

```javascript
() => {
    // first, let's find out the userId of the first user we have
    cy.request('http://localhost:8080/users?_limit=1')
      .its('body') // yields the response object
      .its('0') // yields the first element of the returned list
      // the above two commands its('body').its('0')
      // can be written as its('body.0')
      // if you do not care about TypeScript checks
      .then((user) => {
        expect(user).property('id').to.be.a('number')
        // make a new post on behalf of the user
        cy.request('POST', 'http://localhost:8080/posts', {
          userId: user.id,
          title: 'Cypress Test Runner',
          body: 'Fast, easy and reliable testing for anything that runs in a browser.',
        })
      })
      // note that the value here is the returned value of the 2nd request
      // which is the new post object
      .then((response) => {
        expect(response).property('status').to.equal(201) // new entity created
        expect(response).property('body').to.contain({
          title: 'Cypress Test Runner',
        })

        // we don't know the exact post id - only that it will be > 100
        // since JSONPlaceholder has built-in 100 posts
        expect(response.body).property('id').to.be.a('number')
          .and.to.be.gt(100)

        // we don't know the user id here - since it was in above closure
        // so in this test just confirm that the property is there
        expect(response.body).property('userId').to.be.a('number')
      })
  }
```

[cypress/e2e/2-advanced-examples/network_requests.cy.js](https://github.com/cypress-io/cypress-example-kitchensink/blob/b34a2352ce6ca7c606cadcbb0febcbb18849289c/cypress/e2e/2-advanced-examples/network_requests.cy.js#L53-L87) · [More projects using Cypress →](https://dashboard.exa.ai/playground/search?q=cypress%20GitHub%20projects)

**Quickstart**

```javascript
describe('My First Test', () => {
  it('Visits the Kitchen Sink', () => {
    cy.visit('https://example.cypress.io')
  })
})
```

From [writing-your-first-end-to-end-test.mdx](https://github.com/cypress-io/cypress-documentation/blob/main/docs/app/get-started/writing-your-first-end-to-end-test.mdx)

### uvu

[GitHub](https://github.com/lukeed/uvu) · [npm](https://www.npmjs.com/package/uvu) · [Docs](https://cdn.jsdelivr.net/npm/uvu@0.5.6/readme.md)

Runs tests in Node.js and the browser.

- Downloads / mo: 27.1M
- Stars: 3.0K
- Last release: 0.5.6
- License: MIT
- Capabilities: [From the uvu docs](https://cdn.jsdelivr.net/npm/uvu@0.5.6/readme.md)

```sh
npm install --save-dev uvu@0.5.6
```

**Quickstart**

```javascript
import { test } from 'uvu';
import * as assert from 'uvu/assert';

test('Math.sqrt()', () => {
  assert.is(Math.sqrt(4), 2);
  assert.is(Math.sqrt(144), 12);
  assert.is(Math.sqrt(2), Math.SQRT2);
});

test.run();
```

From [readme.md](https://cdn.jsdelivr.net/npm/uvu@0.5.6/readme.md) · [Find projects using uvu →](https://dashboard.exa.ai/playground/search?q=uvu%20GitHub%20projects)

### Jasmine

[GitHub](https://github.com/jasmine/jasmine) · [npm](https://www.npmjs.com/package/jasmine-core) · [Docs](https://jasmine.github.io/api/7.0/Env.html)

Provides a testing framework for browsers and Node.js.

- Downloads / mo: 24.7M
- Stars: 15.8K
- Last release: 7.0.2
- License: MIT
- Capabilities: [From the Jasmine docs](https://jasmine.github.io/api/7.0/Env.html)

```sh
npm install --save-dev jasmine-core@7.0.2
```

**karma-runner/karma-jasmine** (536 stars)

[karma-runner/karma-jasmine](https://github.com/karma-runner/karma-jasmine) 

```javascript
function createStartFn (karma, jasmineEnv) {
  // This function will be assigned to `window.__karma__.start`:
  return function () {
    var clientConfig = karma.config || {}
    var jasmineConfig = clientConfig.jasmine || {}

    jasmineEnv = jasmineEnv || window.jasmine.getEnv()

    jasmineConfig.specFilter = createSpecFilter(clientConfig, jasmineEnv)
    jasmineEnv.configure(jasmineConfig)

    window.jasmine.DEFAULT_TIMEOUT_INTERVAL = jasmineConfig.timeoutInterval ||
      window.jasmine.DEFAULT_TIMEOUT_INTERVAL
    jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))
    jasmineEnv.execute()
  }
}
```

[src/adapter.js](https://github.com/karma-runner/karma-jasmine/blob/057bf014c4ff0901a772dca7b04b7aaa5606a179/src/adapter.js#L497-L513) · [More projects using Jasmine →](https://dashboard.exa.ai/playground/search?q=jasmine-core%20GitHub%20projects)

**Quickstart**

```javascript
<link rel="stylesheet" href="node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
<script src="node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script src="node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
<script>
describe("A suite", function() {
    it("contains a spec with an expectation", function() {
        expect(true).toBe(true);
    });
});
</script>
```

From [your_first_suite.js](https://github.com/jasmine/jasmine.github.io/blob/master/_tutorials/src/your_first_suite.js)

### Karma

[GitHub](https://github.com/karma-runner/karma) · [npm](https://www.npmjs.com/package/karma) · [Docs](https://karma-runner.github.io/6.4/dev/public-api.html)

Runs JavaScript test suites.

- Downloads / mo: 14.7M
- Stars: 12.0K
- Last release: 6.4.4
- License: MIT
- Capabilities: [From the Karma docs](https://karma-runner.github.io/6.4/dev/public-api.html)

```sh
npm install --save-dev karma@6.4.4 karma-jasmine karma-chrome-launcher
```

**karma-runner/grunt-karma** (465 stars)

[karma-runner/grunt-karma](https://github.com/karma-runner/grunt-karma) 

```javascript
function (grunt) {
  grunt.registerMultiTask('karma', 'run karma.', function () {
    var done = this.async()
    var options = this.options({
      background: false,
      client: {}
    })

    // Allow for passing cli arguments to `client.args` using  `--grep=x`
    var args = parseArgs(process.argv.slice(2))
    if (options.client && _.isArray(options.client.args)) {
      args = options.client.args.concat(args)
    }

    // If arguments are provided we pass them to karma
    if (args.length > 0) {
      if (!options.client) {
        options.client = {}
      }
      options.client.args = args
    }

    // Only create client info if data is provided
    if (options.client) {
      // Merge karma default options
      _.defaults(options.client, {
        args: []
      })
    }

    var opts = _.cloneDeep(options)
    // Merge options onto data, with data taking precedence.
    var data = _.merge(opts, this.data)

    // But override the browsers array.
    if (data.browsers && this.data.browsers) {
      data.browsers = this.data.browsers
    }

    // Merge client.args
    if (this.data.client && _.isArray(this.data.client.args)) {
      data.client.args = this.data.client.args.concat(options.client.args)
    }

    if (data.configFile) {
      data.configFile = path.resolve(data.configFile)
    }

    // Combines both sets of files. The order should be:
    // - first, values from options.files,
    // - then, values from this.files.
    if (options.files || this.files.length) {
      // For our 'files' option, we support arbitrarily nested arrays,
      // as a convenient way to specify files without the user needing to
      // concat or flatten anything within their Gruntfile.
      data.files = _.flattenDeep(options.files || [])
      // The 'files' task data expanded by Grunt internally produces
      // a structure that is exactly 2 levels deep.
      this.files.forEach((file) => {
        file.src.forEach((src) => {
          let obj = {
            pattern: src
          };
          ['watched', 'served', 'included'].forEach((opt) => {
            if (opt in file) {
              obj[opt] = file[opt]
            }
          })
          data.files.push(obj)
        })
      })
    }

    // Allow the use of templates in preprocessors
    if (_.isPlainObject(data.preprocessors)) {
      var preprocessors = {}
      Object.keys(data.preprocessors).forEach(function (key) {
        var value = data.preprocessors[key]
        if (options.basePath) {
          key = path.join(options.basePath, key)
        }
        key = path.resolve(key)
        key = grunt.template.process(key)
        preprocessors[key] = value
      })
      data.preprocessors = preprocessors
    }

    // support `karma run`, useful for grunt watch
    if (this.flags.run) {
      runner.run(data, finished.bind(done))
      return
    }

    // allow karma to be run in the background so it doesn't block grunt
    if (data.background) {
      var backgroundProcess = require('child_process').fork(
        path.join(__dirname, '..', 'lib', 'background.js')
      )

      backgroundProcess.on('close', function (code) {
        var error = code
        if (error) {
          grunt.log.error('background karma process exited with error (code: ' + code + ')')
        }
      })

      process.on('exit', function () {
        backgroundProcess.kill()
      })

      backgroundProcess.send({ config: data })
      done()
    } else {
      var parsedConfig = parseConfig(
        data.configFile,
        data,
        {promiseConfig: true, throwErrors: true}
      )
      if (parsedConfig.then) {
        parsedConfig.then(function (config) {
          var server = new Server(config, finished.bind(done))
          server.start()
        })
      } else {
        // Support: Karma < 6
        var server = new Server(data, finished.bind(done))
        server.start()
      }
    }
  })
}
```

[tasks/grunt-karma.js](https://github.com/karma-runner/grunt-karma/blob/e713d68fc7f6e938381a0a224f75cf671b34d41a/tasks/grunt-karma.js#L27-L158) · [More projects using Karma →](https://dashboard.exa.ai/playground/search?q=karma%20GitHub%20projects)

**Quickstart**

```javascript
const karma = require('karma')

karma.config.parseConfig(
  './karma.conf.cjs',
  { singleRun: true },
  { promiseConfig: true, throwErrors: true }
).then((config) => {
  const server = new karma.Server(config, (code) => { process.exitCode = code })
  return server.start()
})
```

From [public-api.html](https://karma-runner.github.io/6.4/dev/public-api.html)

## FAQ

### Which JavaScript testing library should I use?

[Vitest](#vitest) suits projects that already use Vite configuration and plugins. [Jest](#jest) suits codebases with an established Jest suite. [Playwright](#playwright) suits end-to-end tests that drive real browsers.

### What is Vitest?

[Vitest](#vitest) is a test runner that reuses a project's Vite configuration and plugins. Test files go through the same transforms as the application code.

### What is Jest?

[Jest](#jest) is a JavaScript testing framework that bundles a test runner, assertions, and mocking in one package.

### Playwright vs Cypress: which should I use?

[Playwright](#playwright) automates Chromium, Firefox, and WebKit from test code through a high-level API. [Cypress](#cypress) runs front-end tests inside the browser alongside the app under test.

### Vitest vs Jest: which should I use?

[Vitest](#vitest) fits projects that build with Vite because it shares their configuration. [Jest](#jest) fits projects with an existing Jest setup and no Vite build.

### Jest vs Mocha: what is the difference?

[Mocha](#mocha) runs tests with configurable reporters and pairs with a separate assertion library. [Jest](#jest) includes assertions and mocking in the same package.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best JavaScript testing libraries Jest Vitest Mocha Jasmine examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
