chore: lint code example 3rd try

This commit is contained in:
Mathias Leppich 2024-10-11 09:58:06 +02:00
parent af170edbe2
commit 8cac586dee
2 changed files with 16 additions and 4 deletions

View file

@ -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)
},
},
}); });
``` ```

View file

@ -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)
* },
* },
* }); * });
* ``` * ```
* *