@dxos/test-utils 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/test-utils",
3
- "version": "0.8.4-main.fbb7a13",
3
+ "version": "0.8.4-main.fcc0d83b33",
4
4
  "description": "Test utilities",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -24,13 +24,6 @@
24
24
  }
25
25
  },
26
26
  "types": "dist/types/src/index.d.ts",
27
- "typesVersions": {
28
- "*": {
29
- "playwright": [
30
- "dist/types/src/playwright.d.ts"
31
- ]
32
- }
33
- },
34
27
  "files": [
35
28
  "dist",
36
29
  "src"
@@ -38,11 +31,11 @@
38
31
  "dependencies": {
39
32
  "@playwright/test": "1.57.0",
40
33
  "pkg-up": "^3.1.0",
41
- "@dxos/async": "0.8.4-main.fbb7a13",
42
- "@dxos/node-std": "0.8.4-main.fbb7a13"
34
+ "@dxos/async": "0.8.4-main.fcc0d83b33",
35
+ "@dxos/node-std": "0.8.4-main.fcc0d83b33"
43
36
  },
44
37
  "peerDependencies": {
45
- "vitest": "3.2.4"
38
+ "vitest": "4.1.5"
46
39
  },
47
40
  "publishConfig": {
48
41
  "access": "public"
package/src/playwright.ts CHANGED
@@ -4,10 +4,9 @@
4
4
 
5
5
  /* eslint-disable no-console */
6
6
 
7
+ import { type Browser, type BrowserContext, type Page, type PlaywrightTestConfig, devices } from '@playwright/test';
7
8
  import { existsSync, readFileSync } from 'node:fs';
8
9
  import { dirname, join, resolve } from 'node:path';
9
-
10
- import { type Browser, type BrowserContext, type Page, type PlaywrightTestConfig, devices } from '@playwright/test';
11
10
  import pkgUp from 'pkg-up';
12
11
 
13
12
  import { Lock } from './lock';
@@ -77,9 +76,12 @@ export const e2ePreset = (testDir: string): PlaywrightTestConfig => {
77
76
  // Fail the build on CI if you accidentally left test.only in the source code.
78
77
  forbidOnly: !!process.env.CI,
79
78
  // Retry on CI only.
79
+ // TODO(wittjosiah): Trunk suggests not retrying for better flaky test detection.
80
+ // This is forgone for now as its unclear why some tests are flaky primarily on CI.
81
+ // For the time being, a test is considered flaky if it can't pass within 2 retries.
80
82
  retries: process.env.CI ? 2 : 0,
81
83
  // Opt out of parallel tests on CI.
82
- workers: process.env.CI ? 1 : undefined,
84
+ workers: process.env.CI ? 1 : 4,
83
85
  // Reporter to use. See https://playwright.dev/docs/test-reporters.
84
86
  reporter: process.env.CI
85
87
  ? [
@@ -90,6 +92,7 @@ export const e2ePreset = (testDir: string): PlaywrightTestConfig => {
90
92
  outputFile: reporterOutputFile,
91
93
  },
92
94
  ],
95
+ ['junit', { outputFile: reporterOutputFile.replace(/\.json$/, '.xml') }],
93
96
  ]
94
97
  : [['list']],
95
98
  use: {