plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

Error when test does not contain "describe" blocks

Open Dkendal opened this issue 3 years ago • 0 comments

When running the test harness with the following keymap:

vim.keymaps.set("n", "<leader>tt", "<plug>PlenaryTestFile", {})

With a test:

-- describe("desc block", function()
	it("does the thing", function()
		assert.equal(1, 2)
	end)
-- end)

This error is presented:

image

Uncommenting the describe block fixes the error:


describe("desc block", function()
	it("does the thing", function()
		assert.equal(1, 2)
	end)
end)

image

Dkendal avatar Nov 02 '22 00:11 Dkendal