run lint and fixes
This commit is contained in:
parent
d4e236e27e
commit
06d606275a
|
|
@ -112,6 +112,12 @@ Base directory for all relative paths used in the reporters.
|
|||
|
||||
See [`property: TestConfig.shard`].
|
||||
|
||||
## property: FullConfig.shardingSeed
|
||||
* since: ???
|
||||
- type: <[null]|[string]>
|
||||
|
||||
See [`property: TestConfig.shardingSeed`].
|
||||
|
||||
## property: FullConfig.updateSnapshots
|
||||
* since: v1.10
|
||||
- type: <[UpdateSnapshots]<"all"|"none"|"missing">>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ export class FullConfigInternal {
|
|||
quiet: takeFirst(configCLIOverrides.quiet, userConfig.quiet, false),
|
||||
projects: [],
|
||||
shard: takeFirst(configCLIOverrides.shard, userConfig.shard, null),
|
||||
shardingSeed: takeFirst(configCLIOverrides.shardingSeed, userConfig.shardingSeed, undefined),
|
||||
shardingSeed: takeFirst(configCLIOverrides.shardingSeed, userConfig.shardingSeed, null),
|
||||
updateSnapshots: takeFirst(configCLIOverrides.updateSnapshots, userConfig.updateSnapshots, 'missing'),
|
||||
version: require('../../package.json').version,
|
||||
workers: 0,
|
||||
|
|
|
|||
|
|
@ -595,6 +595,7 @@ export const baseFullConfig: reporterTypes.FullConfig = {
|
|||
rootDir: '',
|
||||
quiet: false,
|
||||
shard: null,
|
||||
shardingSeed: null,
|
||||
updateSnapshots: 'missing',
|
||||
version: '',
|
||||
workers: 0,
|
||||
|
|
|
|||
21
packages/playwright/types/test.d.ts
vendored
21
packages/playwright/types/test.d.ts
vendored
|
|
@ -1411,8 +1411,25 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
|
|||
* Shuffle the order of test groups with a seed. By default tests are run in the order they are discovered, which is
|
||||
* mostly alphabetical. This could lead to an uneven distribution of slow and fast tests. Shuffling the order of tests
|
||||
* in a deterministic way can help to distribute the load more evenly.
|
||||
*
|
||||
* The sharding seed is a string that is used to initialize a random number generator. The configured value needs to
|
||||
* be the same for all shards, to make sure
|
||||
*
|
||||
* Learn more about [parallelism and sharding](https://playwright.dev/docs/test-parallel) with Playwright Test.
|
||||
*
|
||||
* **Usage**
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { defineConfig } from '@playwright/test';
|
||||
*
|
||||
* export default defineConfig({
|
||||
* shardingSeed: "string value"
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
*/
|
||||
shardingSeed?: string
|
||||
shardingSeed?: string;
|
||||
|
||||
/**
|
||||
* **NOTE** Use
|
||||
|
|
@ -1793,7 +1810,7 @@ export interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
|||
/**
|
||||
* See [testConfig.shardingSeed](https://playwright.dev/docs/api/class-testconfig#test-config-sharding-seed).
|
||||
*/
|
||||
shardingSeed: string;
|
||||
shardingSeed: null|string;
|
||||
|
||||
/**
|
||||
* See [testConfig.updateSnapshots](https://playwright.dev/docs/api/class-testconfig#test-config-update-snapshots).
|
||||
|
|
|
|||
Loading…
Reference in a new issue