mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 13:20:44 +00:00
lazy: wrap beforeAll in lua function
This commit is contained in:
parent
0ba3ccdab8
commit
c971673529
1 changed files with 9 additions and 0 deletions
|
@ -26,6 +26,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
|
||||
|
|
Loading…
Reference in a new issue