@easy-web/core 1.9.1 → 1.11.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.
- package/README.md +25 -6
- package/dist/contracts/capabilities.d.ts +3 -0
- package/dist/contracts/capabilities.d.ts.map +1 -1
- package/dist/contracts/content-composition.d.ts +16 -0
- package/dist/contracts/content-composition.d.ts.map +1 -1
- package/dist/contracts/content-composition.js +8 -0
- package/dist/contracts/content-composition.js.map +1 -1
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/ordering.d.ts +6 -0
- package/dist/contracts/ordering.d.ts.map +1 -0
- package/dist/contracts/ordering.js +22 -0
- package/dist/contracts/ordering.js.map +1 -0
- package/dist/contracts/traits.d.ts +4 -0
- package/dist/contracts/traits.d.ts.map +1 -1
- package/dist/contracts/traits.js +3 -1
- package/dist/contracts/traits.js.map +1 -1
- package/dist/recipes/content-site.d.ts +8 -0
- package/dist/recipes/content-site.d.ts.map +1 -1
- package/dist/recipes/content-site.js +226 -42
- package/dist/recipes/content-site.js.map +1 -1
- package/dist/recipes/shell-recipe.d.ts +4 -0
- package/dist/recipes/shell-recipe.d.ts.map +1 -1
- package/dist/recipes/shell-recipe.js +127 -6
- package/dist/recipes/shell-recipe.js.map +1 -1
- package/dist/seo/index.d.ts +5 -0
- package/dist/seo/index.d.ts.map +1 -1
- package/dist/seo/index.js +7 -3
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/rendered-sitemap-alternates.d.ts +7 -0
- package/dist/seo/rendered-sitemap-alternates.d.ts.map +1 -0
- package/dist/seo/rendered-sitemap-alternates.js +232 -0
- package/dist/seo/rendered-sitemap-alternates.js.map +1 -0
- package/package.json +1 -1
- package/src/contracts/__tests__/content-composition.test.ts +17 -0
- package/src/contracts/__tests__/ordering.test.ts +34 -0
- package/src/contracts/capabilities.ts +4 -0
- package/src/contracts/content-composition.ts +8 -0
- package/src/contracts/index.ts +1 -0
- package/src/contracts/ordering.ts +33 -0
- package/src/contracts/traits.ts +4 -1
- package/src/recipes/__tests__/content-site.test.ts +98 -2
- package/src/recipes/__tests__/shell-recipe.test.ts +23 -0
- package/src/recipes/content-site.ts +227 -48
- package/src/recipes/shell-recipe.ts +132 -6
- package/src/seo/__tests__/integration.test.ts +28 -0
- package/src/seo/__tests__/rendered-sitemap-alternates.test.ts +127 -0
- package/src/seo/__tests__/sitemap-options.test.ts +7 -7
- package/src/seo/index.ts +17 -3
- package/src/seo/rendered-sitemap-alternates.ts +231 -0
- package/src/type-tests/contracts.ts +6 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { compareContentOrder } from '../ordering.js';
|
|
3
|
+
|
|
4
|
+
describe('compareContentOrder', () => {
|
|
5
|
+
it('orders finite values ascending and leaves missing values last', () => {
|
|
6
|
+
const entries = [
|
|
7
|
+
{ order: 5, slug: 'last', id: 'last' },
|
|
8
|
+
{ slug: 'missing', id: 'missing' },
|
|
9
|
+
{ order: 0, slug: 'zero', id: 'zero' },
|
|
10
|
+
{ order: -5, slug: 'first', id: 'first' },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
expect(entries.toSorted((left, right) => compareContentOrder(left, right, 'en')).map(({ id }) => id))
|
|
14
|
+
.toEqual(['first', 'zero', 'last', 'missing']);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('breaks ties by locale-explicit slug and then ordinal ID, independent of input order', () => {
|
|
18
|
+
const entries = [
|
|
19
|
+
{ order: 1, slug: 'entry', id: 'z-id' },
|
|
20
|
+
{ order: 1, slug: 'zebra', id: 'zebra' },
|
|
21
|
+
{ order: 1, slug: 'entry', id: 'a-id' },
|
|
22
|
+
{ order: 1, slug: 'alpha', id: 'alpha' },
|
|
23
|
+
];
|
|
24
|
+
const compare = (left: typeof entries[number], right: typeof entries[number]) => compareContentOrder(left, right, 'en');
|
|
25
|
+
|
|
26
|
+
expect(entries.toSorted(compare).map(({ id }) => id)).toEqual(['alpha', 'a-id', 'z-id', 'zebra']);
|
|
27
|
+
expect([...entries].reverse().toSorted(compare).map(({ id }) => id)).toEqual(['alpha', 'a-id', 'z-id', 'zebra']);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it.each([NaN, Infinity, -Infinity, 1.5])('rejects invalid numeric order %s', (order) => {
|
|
31
|
+
expect(() => compareContentOrder({ order, slug: 'entry', id: 'entry' }, { slug: 'other', id: 'other' }, 'en'))
|
|
32
|
+
.toThrow('finite integer');
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -42,6 +42,7 @@ const contentTypeBaseShape = {
|
|
|
42
42
|
labels: localizedTextSchema,
|
|
43
43
|
routes: localizedRoutesSchema,
|
|
44
44
|
bindings: selectedBindingsSchema,
|
|
45
|
+
publish: z.enum(['missing-date-means-published', 'missing-date-means-draft']).optional(),
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
const moneyContentTypeSchema = z.object({
|
|
@@ -137,6 +138,13 @@ function validateBindings(
|
|
|
137
138
|
context: z.RefinementCtx,
|
|
138
139
|
): void {
|
|
139
140
|
const selected = new Set(contentType.traits);
|
|
141
|
+
if (contentType.publish && selected.has('publication')) {
|
|
142
|
+
context.addIssue({
|
|
143
|
+
code: z.ZodIssueCode.custom,
|
|
144
|
+
path: [...path, 'publish'],
|
|
145
|
+
message: 'A publish rule cannot be combined with the publication trait',
|
|
146
|
+
});
|
|
147
|
+
}
|
|
140
148
|
for (const binding of contentType.bindings) {
|
|
141
149
|
const missing = presentationBindingRequirements[binding].filter((trait) => !selected.has(trait));
|
|
142
150
|
if (missing.length > 0) context.addIssue({
|
package/src/contracts/index.ts
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { HasOptionalOrder, HasSlug } from './capabilities.js';
|
|
2
|
+
|
|
3
|
+
export interface OrderedContentEntry extends HasOptionalOrder, HasSlug {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function compareIdentifiers(left: string, right: string): number {
|
|
8
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function assertValidOrder(order: number | undefined): void {
|
|
12
|
+
if (order !== undefined && (!Number.isFinite(order) || !Number.isInteger(order))) {
|
|
13
|
+
throw new TypeError('Content order must be a finite integer');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function compareContentOrder(
|
|
18
|
+
left: OrderedContentEntry,
|
|
19
|
+
right: OrderedContentEntry,
|
|
20
|
+
locale: string,
|
|
21
|
+
): number {
|
|
22
|
+
assertValidOrder(left.order);
|
|
23
|
+
assertValidOrder(right.order);
|
|
24
|
+
|
|
25
|
+
if (left.order === undefined && right.order !== undefined) return 1;
|
|
26
|
+
if (left.order !== undefined && right.order === undefined) return -1;
|
|
27
|
+
if (left.order !== undefined && right.order !== undefined && left.order !== right.order) {
|
|
28
|
+
return left.order < right.order ? -1 : 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const slugOrder = left.slug.localeCompare(right.slug, locale);
|
|
32
|
+
return slugOrder === 0 ? compareIdentifiers(left.id, right.id) : slugOrder;
|
|
33
|
+
}
|
package/src/contracts/traits.ts
CHANGED
|
@@ -24,7 +24,8 @@ const summaryShape = { summary: z.string().min(1) };
|
|
|
24
24
|
const bodyShape = { body: z.string().min(1) };
|
|
25
25
|
const imageShape = { image: imageSchema };
|
|
26
26
|
const photosShape = { photos: z.array(imageSchema).readonly() };
|
|
27
|
-
const orderShape = { order: z.number().int() };
|
|
27
|
+
const orderShape = { order: z.number().finite().int() };
|
|
28
|
+
const optionalOrderShape = { order: z.number().finite().int().optional() };
|
|
28
29
|
const taxonomyShape = { taxonomy: z.array(z.string().min(1)).readonly() };
|
|
29
30
|
const publicationShape = { publishDate: z.date(), modifiedDate: z.date().optional() };
|
|
30
31
|
const scheduleShape = { startDate: z.date(), endDate: z.date().optional() };
|
|
@@ -60,6 +61,7 @@ export const bodyTraitSchema = z.object(bodyShape).strict().readonly();
|
|
|
60
61
|
export const imageTraitSchema = z.object(imageShape).strict().readonly();
|
|
61
62
|
export const photosTraitSchema = z.object(photosShape).strict().readonly();
|
|
62
63
|
export const orderTraitSchema = z.object(orderShape).strict().readonly();
|
|
64
|
+
export const optionalOrderTraitSchema = z.object(optionalOrderShape).strict().readonly();
|
|
63
65
|
export const taxonomyTraitSchema = z.object(taxonomyShape).strict().readonly();
|
|
64
66
|
export const publicationTraitSchema = z.object(publicationShape).strict().readonly();
|
|
65
67
|
export const scheduleTraitSchema = z.object(scheduleShape).strict().readonly();
|
|
@@ -75,6 +77,7 @@ export type BodyTrait = z.infer<typeof bodyTraitSchema>;
|
|
|
75
77
|
export type ImageTrait = z.infer<typeof imageTraitSchema>;
|
|
76
78
|
export type PhotosTrait = z.infer<typeof photosTraitSchema>;
|
|
77
79
|
export type OrderTrait = z.infer<typeof orderTraitSchema>;
|
|
80
|
+
export type OptionalOrderTrait = z.infer<typeof optionalOrderTraitSchema>;
|
|
78
81
|
export type TaxonomyTrait = z.infer<typeof taxonomyTraitSchema>;
|
|
79
82
|
export type PublicationTrait = z.infer<typeof publicationTraitSchema>;
|
|
80
83
|
export type ScheduleTrait = z.infer<typeof scheduleTraitSchema>;
|
|
@@ -36,16 +36,43 @@ describe('content site recipes', () => {
|
|
|
36
36
|
const content = await recipes.content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
37
37
|
expect(content.files.find(({ path }) => path === 'src/content/definitions.ts')?.content).toContain('image()');
|
|
38
38
|
expect(content.files.find(({ path }) => path === 'src/lib/content/entries.ts')?.content).toContain("assertImplements<Entry['data'], HasTitle & HasSlug & HasSummary & HasImage>()");
|
|
39
|
+
expect(content.files.find(({ path }) => path === 'src/pages/entries/index.astro')?.content)
|
|
40
|
+
.toContain('.map(toItem).sort((left, right) => left.href < right.href');
|
|
39
41
|
});
|
|
40
42
|
|
|
41
43
|
it('omits optional image/summary fields and navigation rather than inventing capabilities', async () => {
|
|
42
44
|
const recipes = createContentSiteRecipes({ ...composition, contentTypes: [{ ...type, traits: ['title', 'slug', 'body'], bindings: ['list', 'detail'] }] });
|
|
43
45
|
const content = await recipes.content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
46
|
+
const list = String(content.files.find(({ path }) => path === 'src/pages/entries/index.astro')?.content);
|
|
44
47
|
expect(content.files.some(({ path }) => path.endsWith('.svg'))).toBe(false);
|
|
45
48
|
expect(content.files.find(({ path }) => path === 'src/lib/content/entries.ts')?.content).not.toContain('data.summary');
|
|
49
|
+
expect(list).toContain('.map(toItem).sort((left, right) => left.href');
|
|
50
|
+
expect(list).not.toContain('compareContentOrder');
|
|
46
51
|
expect(recipes.content.outputContributions.some(({ id }) => id.endsWith('.navigation'))).toBe(false);
|
|
47
52
|
});
|
|
48
53
|
|
|
54
|
+
it('generates optional ordered entries, locale-aware list comparison and the required runtime floor', async () => {
|
|
55
|
+
const orderedComposition = {
|
|
56
|
+
...composition,
|
|
57
|
+
contentTypes: [{ ...type, traits: ['title', 'slug', 'body', 'order'] }],
|
|
58
|
+
};
|
|
59
|
+
const { content } = createContentSiteRecipes(orderedComposition);
|
|
60
|
+
const output = await content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
61
|
+
const definitions = String(output.files.find(({ path }) => path === 'src/content/definitions.ts')?.content);
|
|
62
|
+
const adapter = String(output.files.find(({ path }) => path === 'src/lib/content/entries.ts')?.content);
|
|
63
|
+
const list = String(output.files.find(({ path }) => path === 'src/pages/entries/index.astro')?.content);
|
|
64
|
+
const manifest = JSON.parse(String(output.files.find(({ path }) => path === 'package.json')?.content));
|
|
65
|
+
|
|
66
|
+
expect(definitions).toContain('optionalOrderTraitSchema');
|
|
67
|
+
expect(adapter).toContain('HasOptionalOrder');
|
|
68
|
+
expect(list).toContain("import { compareContentOrder } from '@easy-web/core/contracts'");
|
|
69
|
+
expect(list).toContain('compareContentOrder(');
|
|
70
|
+
expect(list).toContain('"en"');
|
|
71
|
+
expect(list).not.toContain('.map(toItem).sort((left, right) => left.href');
|
|
72
|
+
expect(manifest.dependencies['@easy-web/core']).toBe('^1.10.0');
|
|
73
|
+
expect(content.compatibleRuntimeRange).toBe('^1.10.0');
|
|
74
|
+
});
|
|
75
|
+
|
|
49
76
|
it('uses bracket access for kebab-case collection IDs and nested route imports', async () => {
|
|
50
77
|
const recipes = createContentSiteRecipes({ ...composition, contentTypes: [{ ...type, id: 'example-entry', routes: { en: '/library/entries' } }] });
|
|
51
78
|
const content = await recipes.content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
@@ -71,8 +98,77 @@ describe('content site recipes', () => {
|
|
|
71
98
|
expect(() => createContentSiteRecipes({ ...composition, contentTypes: [type, { ...type, id: 'other', primary: false, routes: { en: '/entries/example/' } }] })).toThrow('overlap');
|
|
72
99
|
});
|
|
73
100
|
|
|
74
|
-
it('rejects
|
|
101
|
+
it('rejects unsupported locale sets and empty content selections', () => {
|
|
75
102
|
expect(generatedContentCompositionSchema.safeParse({ contentLocales: ['en'], contentTypes: [] }).success).toBe(false);
|
|
76
|
-
expect(generatedContentCompositionSchema.safeParse({
|
|
103
|
+
expect(generatedContentCompositionSchema.safeParse({
|
|
104
|
+
contentLocales: ['de', 'fr'], contentTypes: [{ ...type, labels: { de: 'Einträge', fr: 'Entrées' }, routes: { de: '/beitraege/', fr: '/entrees/' } }],
|
|
105
|
+
}).success).toBe(false);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it('generates localized collections, routes and translation-aware links for the DE/EN pair', async () => {
|
|
109
|
+
const bilingual = {
|
|
110
|
+
contentLocales: ['de', 'en'],
|
|
111
|
+
contentTypes: [{
|
|
112
|
+
...type,
|
|
113
|
+
labels: { de: 'Beiträge', en: 'Entries' },
|
|
114
|
+
routes: { de: '/beitraege/', en: '/entries/' },
|
|
115
|
+
traits: ['title', 'slug', 'summary', 'body'],
|
|
116
|
+
}],
|
|
117
|
+
};
|
|
118
|
+
const recipes = createContentSiteRecipes(bilingual);
|
|
119
|
+
const content = await recipes.content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
120
|
+
const paths = content.files.map(({ path }) => path);
|
|
121
|
+
expect(paths).toEqual(expect.arrayContaining([
|
|
122
|
+
'src/content/entries/de/example.md', 'src/content/entries/en/example.md',
|
|
123
|
+
'src/pages/beitraege/index.astro', 'src/pages/beitraege/[slug].astro',
|
|
124
|
+
'src/pages/entries/index.astro', 'src/pages/entries/[slug].astro',
|
|
125
|
+
]));
|
|
126
|
+
const german = content.files.find(({ path }) => path === 'src/content/entries/de/example.md')!.content;
|
|
127
|
+
const english = content.files.find(({ path }) => path === 'src/content/entries/en/example.md')!.content;
|
|
128
|
+
expect(german).toContain('"locale": "de"');
|
|
129
|
+
expect(german).toContain('"translationKey": "example"');
|
|
130
|
+
expect(german).toContain('Beiträge - Beispiel');
|
|
131
|
+
expect(english).toContain('Entries - Example');
|
|
132
|
+
const definitions = content.files.find(({ path }) => path === 'src/content/definitions.ts')!.content;
|
|
133
|
+
expect(definitions).toContain('locale: z.enum(["de","en"])');
|
|
134
|
+
expect(definitions).toContain('translationKey: z.string().min(1)');
|
|
135
|
+
const detail = content.files.find(({ path }) => path === 'src/pages/beitraege/[slug].astro')!.content;
|
|
136
|
+
expect(detail).toContain('candidate.data.translationKey === entry.data.translationKey');
|
|
137
|
+
expect(detail).toContain('routeBases[candidate.data.locale] + \'/\' + candidate.data.slug + \'/\'');
|
|
138
|
+
expect(detail).toContain('locale={"de"}');
|
|
139
|
+
const list = content.files.find(({ path }) => path === 'src/pages/entries/index.astro')!.content;
|
|
140
|
+
expect(list).toContain('data.locale === "en"');
|
|
141
|
+
expect(list).toContain('locale={"en"}');
|
|
142
|
+
expect(list.indexOf('.sort((left, right) => left.data.slug')).toBeLessThan(list.indexOf('.map((entry) => toItem(entry, "en", sitePrefix))'));
|
|
143
|
+
expect(recipes.content.compatibleRuntimeRange).toBe('^1.10.0');
|
|
144
|
+
expect(recipes.shell.outputContributions).toContainEqual(expect.objectContaining({ target: '/en/' }));
|
|
145
|
+
expect(recipes.content.outputContributions).toContainEqual(expect.objectContaining({ target: '/beitraege/[slug]' }));
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('preserves the single-locale runtime minimum', async () => {
|
|
149
|
+
const { content } = createContentSiteRecipes(composition);
|
|
150
|
+
const output = await content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
151
|
+
const manifest = JSON.parse(String(output.files.find(({ path }) => path === 'package.json')?.content));
|
|
152
|
+
expect(manifest.dependencies['@easy-web/core']).toBe('^1.6.0');
|
|
153
|
+
expect(content.compatibleRuntimeRange).toBe('^1.6.0');
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
it('opts individual content types into date validation and both public read boundaries', async () => {
|
|
157
|
+
const gated = { ...type, publish: 'missing-date-means-draft' };
|
|
158
|
+
const { content, shell } = createContentSiteRecipes({ ...composition, contentTypes: [gated] });
|
|
159
|
+
const output = await content.generate({ options: {}, capabilities: [], contributions: [] });
|
|
160
|
+
const definitions = String(output.files.find(({ path }) => path === 'src/content/definitions.ts')?.content);
|
|
161
|
+
const list = String(output.files.find(({ path }) => path === 'src/pages/entries/index.astro')?.content);
|
|
162
|
+
const detail = String(output.files.find(({ path }) => path === 'src/pages/entries/[slug].astro')?.content);
|
|
163
|
+
expect(definitions).toContain('z.union([z.date(), z.string()]).pipe(z.coerce.date()).optional()');
|
|
164
|
+
expect(list).toContain('isPublished(data, "missing-date-means-draft", now)');
|
|
165
|
+
expect(detail).toContain('isPublished(data, "missing-date-means-draft", now)');
|
|
166
|
+
const shellOutput = await shell.generate({ options: shellRecipe.optionsSchema.parse({}), capabilities: [], contributions: [] });
|
|
167
|
+
expect(shellOutput.files.find(({ path }) => path === 'astro.config.mjs')?.content).toContain('easy-web-publication-instant');
|
|
168
|
+
expect(String(list)).toContain('Publication instant is not configured');
|
|
169
|
+
expect(content.compatibleRuntimeRange).toBe('^1.11.0');
|
|
170
|
+
expect(generatedContentCompositionSchema.safeParse({
|
|
171
|
+
...composition, contentTypes: [{ ...gated, publish: 'unknown' }],
|
|
172
|
+
}).success).toBe(false);
|
|
77
173
|
});
|
|
78
174
|
});
|
|
@@ -82,4 +82,27 @@ describe('shell recipe', () => {
|
|
|
82
82
|
expect(manifest.dependencies.sharp).toBeUndefined();
|
|
83
83
|
expect(shellRecipe.compatibleRuntimeRange).toBe('^1.5.0');
|
|
84
84
|
});
|
|
85
|
+
|
|
86
|
+
it('opts only localized content shells into manual routes and rendered sitemap alternates', () => {
|
|
87
|
+
const files = buildShellFiles({ defaultLocale: 'de' }, [], {
|
|
88
|
+
contentLocales: ['de', 'en'],
|
|
89
|
+
navigationByLocale: { de: [{ label: 'Beiträge', href: '/beitraege/' }], en: [{ label: 'Entries', href: '/entries/' }] },
|
|
90
|
+
localizedPaths: [{ de: '/', en: '/en/' }, { de: '/beitraege/', en: '/entries/' }],
|
|
91
|
+
});
|
|
92
|
+
const config = files.find(({ path }) => path === 'astro.config.mjs')!.content;
|
|
93
|
+
const layout = files.find(({ path }) => path === 'src/layouts/Base.astro')!.content;
|
|
94
|
+
const root = files.find(({ path }) => path === 'src/pages/index.astro')!.content;
|
|
95
|
+
const englishHome = files.find(({ path }) => path === 'src/pages/en/index.astro')!.content;
|
|
96
|
+
expect(config).toContain('i18n: { defaultLocale: "de", locales: ["de","en"] }');
|
|
97
|
+
expect(config).toContain('"synchronizeRenderedAlternates":true');
|
|
98
|
+
expect(config).toContain('"de":"de","en":"en"');
|
|
99
|
+
expect(layout).toContain('<html lang={currentLang}>');
|
|
100
|
+
expect(layout).toContain('navigationByLocale[currentLang]');
|
|
101
|
+
expect(layout).toContain('alternates={alternates}');
|
|
102
|
+
expect(layout).toContain('import.meta.env.BASE_URL');
|
|
103
|
+
expect(root).toContain('Willkommen');
|
|
104
|
+
expect(root).toContain('getAlternateLinks');
|
|
105
|
+
expect(englishHome).toContain('Welcome');
|
|
106
|
+
expect(files.find(({ path }) => path === 'src/lib/localized-paths.ts')?.content).toContain('"/beitraege/"');
|
|
107
|
+
});
|
|
85
108
|
});
|