lazy: wrap beforeAll in lua function

This commit is contained in:
Ching Pei Yang 2024-11-08 17:55:18 +01:00
parent 0ba3ccdab8
commit c971673529
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -26,6 +26,15 @@
(removeAttrs spec ["package" "setupModule" "setupOpts" "keys"]) (removeAttrs spec ["package" "setupModule" "setupOpts" "keys"])
// { // {
"@1" = name; "@1" = name;
beforeAll =
if spec.beforeAll != null
then
mkLuaInline ''
function()
${spec.beforeAll}
end
''
else null;
before = before =
if spec.before != null if spec.before != null
then then