From e54ddbed01064930d116c4df733298a92e149257 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 28 Jan 2025 10:11:08 +0000
Subject: [PATCH] feat(roll): roll to ToT Playwright (28-01-25)
---
nodejs/docs/api/class-testconfig.mdx | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
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