Skip to content

Commit 5b52a31

Browse files
committed
Use vitest SummaryReporter
1 parent 8488250 commit 5b52a31

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@babel/preset-typescript": "^7.16.7",
1616
"@hypothesis/frontend-build": "^3.2.1",
1717
"@hypothesis/frontend-shared": "^9.2.1",
18-
"@hypothesis/frontend-testing": "^1.3.1",
18+
"@hypothesis/frontend-testing": "^1.6.0",
1919
"@npmcli/arborist": "^9.0.0",
2020
"@octokit/rest": "^21.0.0",
2121
"@rollup/plugin-babel": "^6.0.0",

vitest.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
import { SummaryReporter } from '@hypothesis/frontend-testing/vitest';
12
import { defineConfig } from 'vitest/config';
23

34
export default defineConfig({
45
test: {
6+
globals: true,
7+
reporters: [new SummaryReporter()],
8+
59
browser: {
610
provider: 'playwright',
711
enabled: true,
@@ -10,7 +14,6 @@ export default defineConfig({
1014
instances: [{ browser: 'chromium' }],
1115
viewport: { width: 1024, height: 768 },
1216
},
13-
globals: true,
1417

1518
// CSS bundles, relied upon by accessibility tests (eg. for color-contrast
1619
// checks).

yarn.lock

+10-5
Original file line numberDiff line numberDiff line change
@@ -2221,14 +2221,19 @@ __metadata:
22212221
languageName: node
22222222
linkType: hard
22232223

2224-
"@hypothesis/frontend-testing@npm:^1.3.1":
2225-
version: 1.5.0
2226-
resolution: "@hypothesis/frontend-testing@npm:1.5.0"
2224+
"@hypothesis/frontend-testing@npm:^1.6.0":
2225+
version: 1.6.0
2226+
resolution: "@hypothesis/frontend-testing@npm:1.6.0"
22272227
dependencies:
22282228
axe-core: ^4.8.2
22292229
enzyme: ^3.11.0
22302230
preact: ^10.18.1
2231-
checksum: 26cbebeb23acb5fb6d29d26178d3b8dd617dcb948f7596aefdacac3fdf62c7ac02d78f5ec634b0bed5b63e001ad5bb26989df732b0caf971f2b0671620821fde
2231+
peerDependencies:
2232+
vitest: ^3.1.2
2233+
peerDependenciesMeta:
2234+
vitest:
2235+
optional: true
2236+
checksum: 1ac5404bc658bbf1c71548d39e4703ac65ec822794f0a654122b7c98767f3f5830449466ee4c46695a44bd03a65b35108dddc3d8d7b177eb738b11a34c4f38e7
22322237
languageName: node
22332238
linkType: hard
22342239

@@ -7503,7 +7508,7 @@ __metadata:
75037508
"@babel/preset-typescript": ^7.16.7
75047509
"@hypothesis/frontend-build": ^3.2.1
75057510
"@hypothesis/frontend-shared": ^9.2.1
7506-
"@hypothesis/frontend-testing": ^1.3.1
7511+
"@hypothesis/frontend-testing": ^1.6.0
75077512
"@npmcli/arborist": ^9.0.0
75087513
"@octokit/rest": ^21.0.0
75097514
"@rollup/plugin-babel": ^6.0.0

0 commit comments

Comments
 (0)