chore: lint code example 2nd try
This commit is contained in:
parent
fc522aa5ea
commit
af170edbe2
|
|
@ -173,9 +173,17 @@ import { defineConfig } from '@playwright/test';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
filter: test => test.title === 'some test',
|
filter: test => test.title === 'some test',
|
||||||
// or
|
});
|
||||||
|
```
|
||||||
|
Or...
|
||||||
|
```js
|
||||||
|
export default defineConfig({
|
||||||
filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
|
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) },
|
filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
|
||||||
16
packages/playwright/types/test.d.ts
vendored
16
packages/playwright/types/test.d.ts
vendored
|
|
@ -1048,9 +1048,21 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
|
||||||
*
|
*
|
||||||
* export default defineConfig({
|
* export default defineConfig({
|
||||||
* filter: test => test.title === 'some test',
|
* filter: test => test.title === 'some test',
|
||||||
* // or
|
* });
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* Or...
|
||||||
|
*
|
||||||
|
* ```js
|
||||||
|
* export default defineConfig({
|
||||||
* filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
|
* 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) },
|
* filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue