lazy: wrap beforeAll in lua function

This commit is contained in:
Ching Pei Yang 2024-11-08 17:55:18 +01:00 committed by raf
parent b6785f8218
commit 1d2d4cd088

View file

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