chore: lint code example 3rd try
This commit is contained in:
parent
af170edbe2
commit
8cac586dee
|
|
@ -178,13 +178,19 @@ export default defineConfig({
|
||||||
Or...
|
Or...
|
||||||
```js
|
```js
|
||||||
export default defineConfig({
|
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
|
```js
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
|
filter: {
|
||||||
|
filterTestGroups: testgroups => {
|
||||||
|
return testgroups.filter((testgroups, index) => index % 2 === 0)
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
10
packages/playwright/types/test.d.ts
vendored
10
packages/playwright/types/test.d.ts
vendored
|
|
@ -1055,7 +1055,9 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
|
||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* export default defineConfig({
|
* export default defineConfig({
|
||||||
* filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) },
|
* filter: {
|
||||||
|
* filterTests: tests => tests.filter((test, index) => index % 2 === 0)
|
||||||
|
* },
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
|
@ -1063,7 +1065,11 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
|
||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* export default defineConfig({
|
* export default defineConfig({
|
||||||
* filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) },
|
* filter: {
|
||||||
|
* filterTestGroups: testgroups => {
|
||||||
|
* return testgroups.filter((testgroups, index) => index % 2 === 0)
|
||||||
|
* },
|
||||||
|
* },
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue