Skip to content

Commit

Permalink
chore: create uiviewer dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hhk-png committed May 20, 2024
1 parent e858ea6 commit 7a8dcc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/shiki-renderer-svg/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { writeFileSync } from 'node:fs'
import { existsSync, mkdirSync, writeFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'
import { codeToTokens } from 'shiki'
import { getSVGRenderer } from '../src/index'
Expand Down Expand Up @@ -104,5 +104,9 @@ function writeHTMLFile(svgStr: string) {
</body>
</html>
`
// create uiviewer folder
if (!existsSync(new URL('./uiviewer', import.meta.url)))
mkdirSync(new URL('./uiviewer', import.meta.url))

writeFileSync(new URL('./uiviewer/test.html', import.meta.url), htmlfile)
}

0 comments on commit 7a8dcc9

Please sign in to comment.