返回 slidev
shiki.test.ts
根目录 / packages / slidev / node / syntax / shiki.test.ts
1 import * as shiki from 'shiki'
2 import { expect, it } from 'vitest'
3 import MarkdownItShiki from './shiki'
4
5 it('shiki integration', async () => {
6 const options = {
7 data: { config: {} },
8 mode: 'dev',
9 utils: {
10 shiki,
11 shikiOptions: { theme: 'nord' },
12 },
13 } as any
14
15 const plugin = await MarkdownItShiki(options)
16
17 expect(plugin).toBeDefined()
18 })
19
19 lines TYPESCRIPT