thenbe / neotest-playwright

A playwright adapter for neotest.
MIT License
43 stars 5 forks source link

How to install with LazyVim? #36

Closed rafaelrinaldi closed 5 months ago

rafaelrinaldi commented 5 months ago

I have followed the suggested steps on how to install it via LazyVim but I am unable to get it to work. I keep getting the following error message:

CleanShot 2024-06-27 at 09 55 24@2x

Here's my neotest plugin configuration file in LazyVim:

-- File: ~/.config/nvim/lua/plugins/neotest.lua
return {
  "nvim-neotest/neotest",
  dependencies = {
    "thenbe/neotest-playwright",
  },
  opts = {
    adapters = {
      require("neotest-playwright").adapter({
        options = {
          persist_project_selection = true,
          enable_dynamic_test_discovery = true,
        },
      }),
    },
  },
}

What am I doing wrong?

Thanks.

rafaelrinaldi commented 5 months ago

It turns out that the configuration schema I am using is the one recommended by LazyVim but this plugin requires a different one. I have made the changes and now the plugin is loading up. I will close this issue.