@dargmuesli/nuxt-vio-testing 17.0.3 → 18.0.0

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.
Files changed (2) hide show
  1. package/e2e/utils/tests.ts +23 -73
  2. package/package.json +8 -8
@@ -77,7 +77,9 @@ export const testMetadata = async ({
77
77
  key: 'content',
78
78
  value: joinURL(
79
79
  SITE_URL,
80
- `/__og-image__/${process.env.VIO_SERVER === 'static' ? 'static' : 'image'}`,
80
+ `/__og-image__/${
81
+ process.env.VIO_SERVER === 'static' ? 'static' : 'image'
82
+ }`,
81
83
  path,
82
84
  '/og.png',
83
85
  ),
@@ -118,7 +120,9 @@ export const testMetadata = async ({
118
120
  key: 'content',
119
121
  value: joinURL(
120
122
  SITE_URL,
121
- `/__og-image__/${process.env.VIO_SERVER === 'static' ? 'static' : 'image'}`,
123
+ `/__og-image__/${
124
+ process.env.VIO_SERVER === 'static' ? 'static' : 'image'
125
+ }`,
122
126
  path,
123
127
  '/og.png',
124
128
  ),
@@ -136,7 +140,9 @@ export const testMetadata = async ({
136
140
  key: 'content',
137
141
  value: joinURL(
138
142
  SITE_URL,
139
- `/__og-image__/${process.env.VIO_SERVER === 'static' ? 'static' : 'image'}`,
143
+ `/__og-image__/${
144
+ process.env.VIO_SERVER === 'static' ? 'static' : 'image'
145
+ }`,
140
146
  path,
141
147
  '/og.png',
142
148
  ),
@@ -212,11 +218,11 @@ export const testMetadata = async ({
212
218
  },
213
219
  {
214
220
  key: 'href',
215
- value: '/favicon-16x16.png',
221
+ value: '/favicon.ico?v=zeMtipb6C9',
216
222
  },
217
223
  {
218
- key: 'type',
219
- value: 'image/png',
224
+ key: 'sizes',
225
+ value: '48x48',
220
226
  },
221
227
  ],
222
228
  },
@@ -229,11 +235,15 @@ export const testMetadata = async ({
229
235
  },
230
236
  {
231
237
  key: 'href',
232
- value: '/favicon-32x32.png',
238
+ value: '/assets/static/favicon/favicon.svg?v=zeMtipb6C9',
239
+ },
240
+ {
241
+ key: 'sizes',
242
+ value: 'any',
233
243
  },
234
244
  {
235
245
  key: 'type',
236
- value: 'image/png',
246
+ value: 'image/svg+xml',
237
247
  },
238
248
  ],
239
249
  },
@@ -246,15 +256,8 @@ export const testMetadata = async ({
246
256
  },
247
257
  {
248
258
  key: 'href',
249
- value: '/apple-touch-icon.png',
250
- },
251
- {
252
- key: 'type',
253
- value: 'image/png',
254
- },
255
- {
256
- key: 'sizes',
257
- value: '180x180',
259
+ value:
260
+ '/assets/static/favicon/apple-touch-icon-180x180.png?v=zeMtipb6C9',
258
261
  },
259
262
  ],
260
263
  },
@@ -381,16 +384,6 @@ export const testMetadata = async ({
381
384
  { key: 'content', value: 'de' },
382
385
  ],
383
386
  },
384
- {
385
- tag: 'meta',
386
- attributes: [
387
- {
388
- key: 'name',
389
- value: 'msapplication-TileColor',
390
- },
391
- { key: 'content', value: '#202020' },
392
- ],
393
- },
394
387
  {
395
388
  tag: 'meta',
396
389
  attributes: [
@@ -406,7 +399,7 @@ export const testMetadata = async ({
406
399
  attributes: [
407
400
  {
408
401
  key: 'href',
409
- value: '/site.webmanifest?v=bOXMwoKlJr',
402
+ value: '/site.webmanifest?v=zeMtipb6C9',
410
403
  },
411
404
  {
412
405
  key: 'rel',
@@ -414,36 +407,6 @@ export const testMetadata = async ({
414
407
  },
415
408
  ],
416
409
  },
417
- {
418
- tag: 'link',
419
- attributes: [
420
- {
421
- key: 'color',
422
- value: '#202020',
423
- },
424
- {
425
- key: 'href',
426
- value: '/assets/static/favicon/safari-pinned-tab.svg?v=bOXMwoKlJr',
427
- },
428
- {
429
- key: 'rel',
430
- value: 'mask-icon',
431
- },
432
- ],
433
- },
434
- {
435
- tag: 'link',
436
- attributes: [
437
- {
438
- key: 'href',
439
- value: '/favicon.ico?v=bOXMwoKlJr',
440
- },
441
- {
442
- key: 'rel',
443
- value: 'shortcut icon',
444
- },
445
- ],
446
- },
447
410
  {
448
411
  tag: 'meta',
449
412
  attributes: [
@@ -474,19 +437,6 @@ export const testMetadata = async ({
474
437
  { key: 'content', value: "Vio is @dargmuesli's Nuxt layer." },
475
438
  ],
476
439
  },
477
- {
478
- tag: 'meta',
479
- attributes: [
480
- {
481
- key: 'name',
482
- value: 'msapplication-Config',
483
- },
484
- {
485
- key: 'content',
486
- value: '/assets/static/favicon/browserconfig.xml?v=bOXMwoKlJr',
487
- },
488
- ],
489
- },
490
440
  {
491
441
  tag: 'meta',
492
442
  attributes: [
@@ -532,7 +482,7 @@ export const testMetadata = async ({
532
482
  attributes: [
533
483
  {
534
484
  key: 'data-hid',
535
- value: '3437552',
485
+ value: 'schema-org-graph',
536
486
  },
537
487
  { key: 'type', value: 'application/ld+json' },
538
488
  ],
@@ -551,7 +501,7 @@ export const testMetadata = async ({
551
501
  }
552
502
 
553
503
  expect(
554
- await page.locator('script[data-hid="3437552"]').innerText(),
504
+ await page.locator('script[data-hid="schema-org-graph"]').innerText(),
555
505
  ).toMatchSnapshot(`schema-org-graph-${process.env.VIO_SERVER || 'dev'}.json`)
556
506
 
557
507
  // if (process.env.VIO_SERVER === 'static') {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@axe-core/playwright": "4.10.1",
4
- "@eslint/js": "9.21.0",
5
- "@playwright/test": "1.51.0",
6
- "@types/node": "22.13.9",
4
+ "@eslint/js": "9.22.0",
5
+ "@playwright/test": "1.51.1",
6
+ "@types/node": "22.13.10",
7
7
  "cross-env": "7.0.3",
8
- "eslint": "9.21.0",
9
- "eslint-config-prettier": "10.0.2",
8
+ "eslint": "9.22.0",
9
+ "eslint-config-prettier": "10.1.1",
10
10
  "eslint-plugin-prettier": "5.2.3",
11
11
  "lodash-es": "4.17.21",
12
12
  "typescript": "5.8.2",
13
- "typescript-eslint": "8.26.0",
13
+ "typescript-eslint": "8.27.0",
14
14
  "ufo": "1.5.4"
15
15
  },
16
16
  "engines": {
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "name": "@dargmuesli/nuxt-vio-testing",
27
27
  "peerDependencies": {
28
- "playwright-core": "1.51.0"
28
+ "playwright-core": "1.51.1"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
@@ -54,5 +54,5 @@
54
54
  "test:e2e:server:static": "cross-env NODE_ENV=production PORT=3002 SITE_URL=https://localhost:3002 VIO_SERVER=static pnpm run test:e2e"
55
55
  },
56
56
  "type": "module",
57
- "version": "17.0.3"
57
+ "version": "18.0.0"
58
58
  }