From aedfbbd7798e0c9e5b7c029c997df4a62f853114 Mon Sep 17 00:00:00 2001 From: Tasawar Hussain <31658686+tasawar-hussain@users.noreply.github.com> Date: Mon, 20 Jan 2025 14:19:02 +0500 Subject: [PATCH] Update test-fixtures-js.md Fix the debug package import, as current version throws error when using typescript. ``` Cannot assign to 'log' because it is a read-only property.ts(2540) ``` Signed-off-by: Tasawar Hussain <31658686+tasawar-hussain@users.noreply.github.com> --- docs/src/test-fixtures-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/test-fixtures-js.md b/docs/src/test-fixtures-js.md index 9bdd4391adade..1f806d06ab28b 100644 --- a/docs/src/test-fixtures-js.md +++ b/docs/src/test-fixtures-js.md @@ -407,7 +407,7 @@ Automatic fixtures are set up for each test/worker, even when the test does not Here is an example fixture that automatically attaches debug logs when the test fails, so we can later review the logs in the reporter. Note how it uses [TestInfo] object that is available in each test/fixture to retrieve metadata about the test being run. ```js title="my-test.ts" -import * as debug from 'debug'; +import debug from 'debug'; import * as fs from 'fs'; import { test as base } from '@playwright/test';