nix-community.nixvim/modules/top-level
Matt Sturgeon ff29c97723
modules/test: provide access to expect function
Allow `test.warnings` and `test.assertions` to be defined as either a
list, or a function coerced to a list.

When defined as a function, it is supplied an `expect` function which
provides some syntactic-sugar for defining simple expectations.

This is an alternative to the current approach of defining that `expect`
function on an ad-hoc basis.

I prefer this to adding `expect` to nixvim's lib because:
1. That would require having access to `lib`
2. IDK where in `lib` such a specialized function should live
2025-01-17 02:17:34 +00:00
..
files modules: move nixpkgs module to top-level modules 2024-09-27 09:30:12 +01:00
default.nix modules: move nixpkgs module to top-level modules 2024-09-27 09:30:12 +01:00
nixpkgs.nix modules/context: flake option, provides access to our flake 2024-12-23 12:18:06 +00:00
output.nix modules/output: add manDocsPackage 2024-12-23 12:18:06 +00:00
readonly-renames.nix modules/{output,files,test}: move outputs to build scope 2024-09-26 06:31:57 +01:00
test.nix modules/test: provide access to expect function 2025-01-17 02:17:34 +00:00