Skip to content

feat(test-runner): test filter #41150

feat(test-runner): test filter

feat(test-runner): test filter #41150

Triggered via pull request October 11, 2024 07:40
Status Failure
Total duration 3m 55s
Artifacts

infra.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 warning
Lint snippets
Process completed with exit code 1.
js linting error: docs/src/test-api/class-testconfig.md#L1
Error: Duplicate key 'filter'. 4 | filter: test => test.title === 'some test', 5 | // or > 6 | filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) }, | ^ 7 | // or 8 | filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) }, 9 | }); Unable to lint: import { defineConfig } from '@playwright/test'; export default defineConfig({ filter: test => test.title === 'some test', // or filter: { filterTests: tests => tests.filter((test, index) => index % 2 === 0) }, // or filter: { filterTestGroups: testgroups => testgroups.filter((testgroups, index) => index % 2 === 0) }, });