pi0 / nuxt-shiki

🎨 Nuxt + Shiki syntax highlighter
79 stars 2 forks source link

feat: add `<Shiki>` component #3

Closed atinux closed 9 months ago

atinux commented 9 months ago

Resolves #2

I would love some help to figure out why the test is failing with a weird error:

CleanShot 2024-02-14 at 23 34 46@2x

Same with npx nuxi dev test/fixtures/basic/

Shall we add a GH action?

cpreston321 commented 9 months ago

@Atinux I am assuming this error is because we have to mock the shiki.config.mjs as a virtual file. Also should we name is it ShikiHighlighter ? I like Shiki but I was seeing and eslint error because it's not a two letter name. If not it's not a big deal.

@danielroe I know you have some experience with nuxt/test-utils think you could help here? I would love to learn :)


update @pi0 fixed it. What was the root issue here ? Was it the name ?