modulestest

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package modulestest the module test vm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromiseResult

func PromiseResult(value sobek.Value) sobek.Value

PromiseResult get the promise resolve result panic when promise reject.

Types

type VM

type VM struct{ js.VM }

func New

func New(t testing.TB, opts ...js.Option) VM

New returns a test VM instance

func (*VM) RunModule

func (vm *VM) RunModule(ctx context.Context, source string, args ...any) (ret sobek.Value, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL