diff options
| author | William Boman <william@redwill.se> | 2026-05-30 15:52:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-30 15:52:15 +0200 |
| commit | 6daa74748ff63efcf24fb66112412c03df08be72 (patch) | |
| tree | df2a931b1f19cf43fc24e4b733cd83ab07d21b50 /tests/mason-core/fs_spec.lua | |
| parent | fix(fs): implement rmrf natively via libuv (#2098) (diff) | |
| download | mason-6daa74748ff63efcf24fb66112412c03df08be72.tar mason-6daa74748ff63efcf24fb66112412c03df08be72.tar.gz mason-6daa74748ff63efcf24fb66112412c03df08be72.tar.bz2 mason-6daa74748ff63efcf24fb66112412c03df08be72.tar.lz mason-6daa74748ff63efcf24fb66112412c03df08be72.tar.xz mason-6daa74748ff63efcf24fb66112412c03df08be72.tar.zst mason-6daa74748ff63efcf24fb66112412c03df08be72.zip | |
refactor(fs): implement mkdirp natively via libuv (#2100)
Diffstat (limited to 'tests/mason-core/fs_spec.lua')
| -rw-r--r-- | tests/mason-core/fs_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/mason-core/fs_spec.lua b/tests/mason-core/fs_spec.lua index 9df22578..3962b8cd 100644 --- a/tests/mason-core/fs_spec.lua +++ b/tests/mason-core/fs_spec.lua @@ -18,4 +18,17 @@ describe("fs", function() e ) end) + + it("should mkdirp", function() + local temp = vim.fn.tempname() + local nested = vim.fs.joinpath(temp, "nested", "directory", "here") + + assert.has_error(function() + assert(vim.uv.fs_stat(nested)) + end) + + fs.sync.mkdirp(nested) + local stat = assert(vim.uv.fs_stat(nested), "fs_stat returned no value") + assert.equals("directory", stat.type) + end) end) |
