Skip to content

@tyravel/testing

Testing utilities for Tyravel applications

Install

bash
npm install @tyravel/testing

Metadata

FieldValue
Version1.0.1
Sourcepackages/testing
CategoryDeveloper experience
Node.js>=26

Tyravel dependencies

Public exports

From the package entry point (dist/index.d.ts). Deep imports are not supported.

Values

  • BroadcastFake
  • CookieJar
  • DatasetRow
  • HttpTestClient
  • HydrationManifestSnapshot
  • MailFake
  • NotificationFake
  • RecordedNotification
  • RenderedView
  • SnapshotOptions
  • TestCase
  • TestRequestContext
  • TestResponse
  • assertDontSee
  • assertHtmlSnapshot
  • assertJsonSnapshot
  • assertSee
  • back
  • beginDatabaseTransaction
  • broadcastFake
  • clearTestRequestContext
  • createHttpKernel
  • createTestingMiddleware
  • dataset
  • fake
  • freezeTime
  • getTestRequestContext
  • jsonContains
  • mailFake
  • mockInstance
  • notificationFake
  • renderView
  • rollbackDatabaseTransaction
  • setTestRequestContext
  • spyOnBinding
  • travel
  • uses
  • wireFacades
  • withTyravelTest

Types

  • HttpTestOptions
  • JsonValue

Guide

See the Testing guide for usage examples.

Released under the MIT License.