Skip to main content
Module

x/denops_std/test/mod.ts>test

📚 Standard module for denops.vim
Go to Latest
function test
import { test } from "https://deno.land/x/denops_std@v3.6.0/test/mod.ts";

Register a test which will be run when deno test is used on the command line and the containing module looks like a test module.

fn receive denops instance which communicate with a real Vim/Neovim.

To use this function, developer must provides the following environment variables:

DENOPS_PATH A path to denops.vim for adding to Vim's runtimepath

DENOPS_TEST_VIM An executable of Vim

DENOPS_TEST_NVIM An executable of Neovim

Otherwise tests using this static method will be ignored.

Parameters

mode: TestDefinition["mode"]
name: string
fn: TestDefinition["fn"]