chore: lint code example 2nd try

This commit is contained in:
Mathias Leppich 2024-10-11 09:52:06 +02:00
parent fc522aa5ea
commit af170edbe2
2 changed files with 24 additions and 4 deletions

View file

@ -173,9 +173,17 @@ import { defineConfig } from '@playwright/test';
export default defineConfig({
filter: test => test.title === 'some test',
// or
});
```
Or...
```js
export default defineConfig({
filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
// or
});
```
Or...
```js
export default defineConfig({
filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
});
```

View file

@ -1048,9 +1048,21 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
*
* export default defineConfig({
* filter: test => test.title === 'some test',
* // or
* });
* ```
*
* Or...
*
* ```js
* export default defineConfig({
* filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
* // or
* });
* ```
*
* Or...
*
* ```js
* export default defineConfig({
* filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
* });
* ```