diff --git a/nodejs/docs/api/class-testconfig.mdx b/nodejs/docs/api/class-testconfig.mdx
index 1b605bfaf95..d3f0b97ef82 100644
--- a/nodejs/docs/api/class-testconfig.mdx
+++ b/nodejs/docs/api/class-testconfig.mdx
@@ -407,6 +407,27 @@ test('example test', async ({}, testInfo) => {
---
+### populateGitInfo {#test-config-populate-git-info}
+
+Added in: v1.51testConfig.populateGitInfo
+
+Whether to populate [testConfig.metadata](/api/class-testconfig.mdx#test-config-metadata) with Git info. The metadata will automatically appear in the HTML report and is available in Reporter API.
+
+**Usage**
+
+```js title="playwright.config.ts"
+import { defineConfig } from '@playwright/test';
+
+export default defineConfig({
+ populateGitInfo: !!process.env.CI,
+});
+```
+
+**Type**
+- [boolean]
+
+---
+
### preserveOutput {#test-config-preserve-output}
Added in: v1.10testConfig.preserveOutput