Skip to content
On this page

Empower Your Test Results with AI-Powered Insights ->

clearInteractions

Removes all interactions from the mock server.

Syntax

js
clearInteractions()

Usage

โœ… Correct Usage

js
mock.clearInteractions();

Examples

js
const { mock } = require('pactum');

mock.clearInteractions();

Released under the MIT License.