Replace last global state block in api.reset
Follow up to I removed the state blocks added by the tests, but neglected to put back a new, empty global state block for the next run.
api.scope.current = api.scope.global
local currentGlobalBlockCount = #api.scope.global.blocks
- for i = currentGlobalBlockCount, numBuiltInGlobalBlocks + 1, -1 do
+ for i = currentGlobalBlockCount, numBuiltInGlobalBlocks, -1 do
table.remove(api.scope.global.blocks, i)
end
+
+ configset.addFilter(api.scope.current, {}, os.getcwd())
end
