echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.47k stars 175 forks source link

[mini.test] screenshot name is prefixed with `.` when run_file() argument starts with `./` #910

Closed MagicDuck closed 1 month ago

MagicDuck commented 1 month ago

Contributing guidelines

Module(s)

mini.test

Description

screenshot name is prefixed with . when run_file() argument starts with ./

Neovim version

0.9.5

Steps to reproduce

run:

:lua MiniTest.run_file('./tests/test_something.lua')

Expected behavior

Paths should be normalized relative to the parent of tests/

Actual behavior

will results in screenshot names for that test file being prefixed with . so they become hidden files.

echasnovski commented 1 month ago

Thanks for the issue!

I'll take a look if this is worth fixing or it might be better to document.

echasnovski commented 1 month ago

This should now be fixed on latest main.

MagicDuck commented 1 month ago

sweet, thank you for the blazingly fast fix! 😄