Skip to main content

testing

frappe-js-client/testing — test your own Frappe code without a running server.

Example

import { createTestClient } from 'frappe-js-client/testing'

const { client, transport } = createTestClient()
transport.mock({ method: 'GET', path: '/api/v2/document/User/Administrator', body: fixtureUser })
const user = await client.db.getDoc('User', 'Administrator')

Classes

Interfaces

Variables

Functions