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>
This commit is contained in:
Tasawar Hussain 2025-01-20 14:19:02 +05:00 committed by GitHub
parent 99fb188cb4
commit aedfbbd779
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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';