-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add e2e test with vPre plugin in importCodePlugin
- Loading branch information
1 parent
0d91448
commit 4b276a6
Showing
2 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
packages/markdown/tests/plugins/__snapshots__/importCodePlugin.spec.ts.snap
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,21 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`@vuepress/markdown > plugins > importCodePlugin > compatibility with otherPlugin > should preserve the things after code as fence info 1`] = ` | ||
"<pre><code class="language-js{1,3-4}">const msg = 'hello from js' | ||
console.log(msg) | ||
console.log('foo bar') | ||
</code></pre> | ||
" | ||
`; | ||
|
||
exports[`@vuepress/markdown > plugins > importCodePlugin > compatibility with otherPlugin > should preserve the things after code as fence info 2`] = ` | ||
"<pre><code class="language-md:no-line-numbers:no-v-pre"># msg | ||
hello from md | ||
## foo bar | ||
</code></pre> | ||
" | ||
`; |
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