Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_core/test/mod.ts>test

🐜 An ecosystem of Vim/Neovim which allows developers to write cross-platform plugins in Deno
Go to Latest
function test
import { test } from "https://deno.land/x/denops_core@v3.2.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"]