diff --git a/.editorconfig b/.editorconfig
index 9c562bd1f..5f40572b0 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,3 +10,7 @@ trim_trailing_whitespace = true
 
 [*.{markdown,md}]
 trim_trailing_whitespace = false
+
+[tests/*]
+insert_final_newline = false
+trim_trailing_whitespace = false