diff options
Diffstat (limited to 'tests/mason-registry/api_spec.lua')
| -rw-r--r-- | tests/mason-registry/api_spec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mason-registry/api_spec.lua b/tests/mason-registry/api_spec.lua index 039d0959..8164c901 100644 --- a/tests/mason-registry/api_spec.lua +++ b/tests/mason-registry/api_spec.lua @@ -3,6 +3,16 @@ local match = require "luassert.match" local stub = require "luassert.stub" describe("mason-registry API", function() + local snapshot + + before_each(function() + snapshot = assert.snapshot() + end) + + after_each(function() + snapshot:revert() + end) + ---@module "mason-registry.api" local api local fetch |
