From a14121f0b11e4e86c9c4d65d9eb445183ceeaa85 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 27 Aug 2024 08:49:01 +0200 Subject: [PATCH 1/2] don't pre-combine tags, add tags stories --- src/indexer/index.ts | 2 +- tests/stories/Tags.stories.svelte | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 tests/stories/Tags.stories.svelte diff --git a/src/indexer/index.ts b/src/indexer/index.ts index b60c10d..09f5678 100644 --- a/src/indexer/index.ts +++ b/src/indexer/index.ts @@ -83,7 +83,7 @@ export const indexer: Indexer = { exportName, name, title: metaTitle, - tags: combineTags(...metaTags, ...tags), + tags: [...metaTags, ...tags], } satisfies IndexInput; }); }, diff --git a/tests/stories/Tags.stories.svelte b/tests/stories/Tags.stories.svelte new file mode 100644 index 0000000..59d1b97 --- /dev/null +++ b/tests/stories/Tags.stories.svelte @@ -0,0 +1,19 @@ + + +No tags + +With autodocs + +With dev + +With test From e4feeae89ba1a344d917dcad3c7a493a1e9a721c Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 27 Aug 2024 09:11:42 +0200 Subject: [PATCH 2/2] document expected tags behavior in tests --- tests/stories/Tags.stories.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/stories/Tags.stories.svelte b/tests/stories/Tags.stories.svelte index 59d1b97..1d9a484 100644 --- a/tests/stories/Tags.stories.svelte +++ b/tests/stories/Tags.stories.svelte @@ -1,6 +1,11 @@ -No tags With autodocs With dev With test + +No tags