fix: git ignore for tests (#1349)

This commit is contained in:
vladopajic
2025-04-24 15:36:46 +02:00
committed by GitHub
parent b5f9bfe0f4
commit bc4febe92c

13
.gitignore vendored
View File

@@ -18,9 +18,10 @@ nimble.develop
nimble.paths
go-libp2p-daemon/
# Ignore all test build files in tests folder (auto generated when running tests),
# by ignoring anything that does not have following file name scheme:
# has extension or is Dockerfile...
/tests/*
!/tests/*.*
!/tests/Dockerfile
# Ignore all test build files in tests folder (auto generated when running tests).
# First rule (`tests/**/test*[^.]*`) will ignore all binaries: has prefix test + does not have dot in name.
# Second and third rules are here to un-ignores all files with extension and Docker file,
# because it appears that vs code is skipping text search is some tests files without these rules.
tests/**/test*[^.]*
!tests/**/*.*
!tests/**/Dockerfile