-
-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: adding e2e tests * fix: change CI order for pnpm * fix: remove screenshot comparison * chore: CI workflow version updates * feat: optimize E2E resources on GitHub actions * fix: change localhost to 127.0.0.1 for Windows CI * fix: remove `webServer` dependency * feat: add more tests * fix: CI mods for npm publish and Windows * fix: fGitHub e2e reporting * fix: update pnpm-lock.yaml * chore: add language updates * fix: site package update with changed palenight theme
- Loading branch information
1 parent
4f8a603
commit 1a059c3
Showing
34 changed files
with
2,816 additions
and
4,689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules | |
tsconfig.tsbuildinfo | ||
tmp | ||
|
||
.DS_Store | ||
.DS_Store | ||
playwright-report/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/shiki/src/__tests__/__fixtures__/index_browser.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<title>Test Browser</title> | ||
<link rel="modulepreload" href="/dist/index.browser.mjs" /> | ||
<script type="module"> | ||
import { getHighlighter } from './dist/index.browser.mjs' | ||
|
||
const highlighter = await getHighlighter({ | ||
theme: 'nord', | ||
langs: ['html'] | ||
}) | ||
|
||
const code = highlighter.codeToHtml(`<div>My HTML</div>`, { lang: 'html' }) | ||
document.getElementById('output').innerHTML = code | ||
</script> | ||
</head> | ||
<body> | ||
<div id="output"></div> | ||
</body> | ||
</html> |
Oops, something went wrong.