mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
tests: allow test cases to use the nixvim helpers (for testing them)
This commit is contained in:
parent
11b22bab05
commit
9e448b7ff0
10 changed files with 12 additions and 11 deletions
|
@ -35,6 +35,7 @@
|
|||
# Remove the nesting
|
||||
testsList = lib.lists.flatten (parseDirectories root []);
|
||||
|
||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
||||
testsListEvaluated = builtins.map ({
|
||||
cases,
|
||||
namespace,
|
||||
|
@ -42,8 +43,8 @@
|
|||
if builtins.isAttrs cases
|
||||
then args
|
||||
else {
|
||||
# cases = cases {inherit pkgs;};
|
||||
cases = cases {inherit pkgs;};
|
||||
# cases is a function
|
||||
cases = cases {inherit pkgs helpers;};
|
||||
inherit namespace;
|
||||
})
|
||||
testsList;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{pkgs, ...}: {
|
||||
"40" = {
|
||||
plugins = {
|
||||
nix.enable = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{pkgs, ...}: {
|
||||
plain = {};
|
||||
|
||||
simple-plugin = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{
|
||||
example-with-str = {
|
||||
clipboard = {
|
||||
register = "unnamed";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{pkgs, ...}: {
|
||||
example = {
|
||||
plugins.nvim-jdtls = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{
|
||||
empty = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{
|
||||
empty = {
|
||||
plugins.treesitter.enable = true;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{pkgs, ...}: {
|
||||
empty = {
|
||||
plugins.lsp.enable = true;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{pkgs, ...}: {
|
||||
empty = {
|
||||
plugins.lualine.enable = true;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs}: {
|
||||
{
|
||||
empty = {
|
||||
plugins.alpha.enable = true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue