mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
Upstream package failing to build in sandbox. Cannot set a package to null so just disabling those tests on darwin.
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
# TODO: added 2024-09-15
|
|
# TODO: Re-enable when upstream builds in darwin sandbox
|
|
example = lib.mkIf pkgs.stdenv.isLinux {
|
|
plugins = {
|
|
treesitter.enable = true;
|
|
neotest = {
|
|
enable = true;
|
|
|
|
adapters.playwright = {
|
|
enable = true;
|
|
|
|
settings.options = {
|
|
persist_project_selection = false;
|
|
enable_dynamic_test_discovery = false;
|
|
preset = "none";
|
|
get_playwright_binary.__raw = ''
|
|
function()
|
|
return vim.loop.cwd() + "/node_modules/.bin/playwright"
|
|
end
|
|
'';
|
|
get_playwright_config.__raw = ''
|
|
function()
|
|
return vim.loop.cwd() + "/playwright.config.ts"
|
|
end
|
|
'';
|
|
get_cwd.__raw = ''
|
|
function()
|
|
return vim.loop.cwd()
|
|
end
|
|
'';
|
|
env = { };
|
|
extra_args = [ ];
|
|
filter_dir.__raw = ''
|
|
function(name, rel_path, root)
|
|
return name ~= "node_modules"
|
|
end
|
|
'';
|
|
is_test_file.__raw = ''
|
|
function(file_path)
|
|
return string.match(file_path, "my-project's-vitest-tests-folder")
|
|
end
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|