Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 26, 2024
1 parent 4e0951f commit 5ebd24e
Show file tree
Hide file tree
Showing 10 changed files with 2,264 additions and 2,413 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.2.12",
"private": true,
"packageManager": "pnpm@9.11.0",
"packageManager": "pnpm@9.15.1",
"scripts": {
"typecheck": "tsc",
"build": "pnpm -r run build",
Expand Down Expand Up @@ -57,7 +57,7 @@
"vue": "catalog:"
},
"resolutions": {
"@types/node": "^22.7.4",
"@types/node": "^22.10.2",
"twoslash": "workspace:*",
"twoslash-vue": "workspace:*",
"typescript": "catalog:",
Expand Down
8 changes: 4 additions & 4 deletions packages/twoslash-vue/test/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ describe('basic', () => {
expect(result.meta.positionQueries)
.toMatchInlineSnapshot(`

Check failure on line 20 in packages/twoslash-vue/test/query.test.ts

View workflow job for this annotation

GitHub Actions / test (lts/*, windows-latest)

packages/twoslash-vue/test/query.test.ts > basic > has correct query

Error: Snapshot `basic > has correct query 1` mismatched - Expected + Received [ - 94, + 115, - 291, + 312, - 1619, + 1640, - 1787, + 1808, ] ❯ packages/twoslash-vue/test/query.test.ts:20:8
[
79,
276,
1561,
1729,
94,
291,
1619,
1787,
]
`)

Expand Down
4 changes: 2 additions & 2 deletions packages/twoslash-vue/test/results/cut-in-vue.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions packages/twoslash-vue/test/results/renderer/example.raw.html

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions packages/twoslash-vue/test/shiki.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTransformerFactory, rendererRich } from '@shikijs/twoslash/core'
import { codeToHtml } from 'shiki'
import { createHighlighter } from 'shiki'
import { expect, it } from 'vitest'
import { createTwoslasher } from '../src'

Expand All @@ -14,9 +14,20 @@ const styleHeader = [
].join('\n')

const twoslasherVue = createTwoslasher()
const shiki = await createHighlighter({
themes: [
'vitesse-dark',
],
langs: [
'vue',
'ts',
'tsx',
'vue',
],
})

it('highlight vue', async () => {
const result = await codeToHtml(code, {
const result = await shiki.codeToHtml(code, {
lang: 'vue',
theme: 'vitesse-dark',
transformers: [
Expand All @@ -38,7 +49,7 @@ const twoslasherRaw = createTwoslasher({
})

it('highlight raw', async () => {
const result = await codeToHtml(code, {
const result = await shiki.codeToHtml(code, {
lang: 'vue',
theme: 'vitesse-dark',
transformers: [
Expand Down
8 changes: 4 additions & 4 deletions packages/twoslash/test/results/examples/imports-modules.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ebd24e

Please sign in to comment.