@dargmuesli/nuxt-vio-testing 14.0.2 → 14.0.4

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 +20 -5
  2. package/package.json +1 -1
@@ -75,7 +75,12 @@ export const testMetadata = async ({
75
75
  },
76
76
  {
77
77
  key: 'content',
78
- value: joinURL(SITE_URL, '/__og-image__/image', path, '/og.png'),
78
+ value: joinURL(
79
+ SITE_URL,
80
+ `/__og-image__/${process.env.VIO_SERVER === 'static' ? 'static' : 'image'}`,
81
+ path,
82
+ '/og.png',
83
+ ),
79
84
  },
80
85
  ],
81
86
  },
@@ -111,7 +116,12 @@ export const testMetadata = async ({
111
116
  },
112
117
  {
113
118
  key: 'content',
114
- value: joinURL(SITE_URL, '/__og-image__/image', path, '/og.png'),
119
+ value: joinURL(
120
+ SITE_URL,
121
+ `/__og-image__/${process.env.VIO_SERVER === 'static' ? 'static' : 'image'}`,
122
+ path,
123
+ '/og.png',
124
+ ),
115
125
  },
116
126
  ],
117
127
  },
@@ -124,7 +134,12 @@ export const testMetadata = async ({
124
134
  },
125
135
  {
126
136
  key: 'content',
127
- value: joinURL(SITE_URL, '/__og-image__/image', path, '/og.png'),
137
+ value: joinURL(
138
+ SITE_URL,
139
+ `/__og-image__/${process.env.VIO_SERVER === 'static' ? 'static' : 'image'}`,
140
+ path,
141
+ '/og.png',
142
+ ),
128
143
  },
129
144
  ],
130
145
  },
@@ -287,7 +302,7 @@ export const testMetadata = async ({
287
302
  attributes: [
288
303
  {
289
304
  key: 'href',
290
- value: `${SITE_URL}${path}`,
305
+ value: withoutTrailingSlash(`${SITE_URL}${path}`),
291
306
  },
292
307
  {
293
308
  key: 'hreflang',
@@ -321,7 +336,7 @@ export const testMetadata = async ({
321
336
  attributes: [
322
337
  {
323
338
  key: 'href',
324
- value: `${SITE_URL}${path}`,
339
+ value: withoutTrailingSlash(`${SITE_URL}${path}`),
325
340
  },
326
341
  {
327
342
  key: 'hreflang',
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "test:e2e:server:static": "cross-env NODE_ENV=production PORT=\"${PORT:-3002}\" SITE_URL=\"${SITE_URL:-https://localhost:3002}\" VIO_SERVER=static pnpm run test:e2e"
55
55
  },
56
56
  "type": "module",
57
- "version": "14.0.2"
57
+ "version": "14.0.4"
58
58
  }