refactor(code): refine component structure #6446
Annotations
2 errors and 1 warning
Run test cases:
packages/varlet-ui/src/code/__tests__/index.spec.js#L34
Error: Snapshot `test code component props > test code content 1` mismatched
- Expected
+ Received
"<div class="var-highlighter-provider">
- <div class="var-code"><pre class="shiki vitesse-light" style="background-color:#ffffff;color:#393a34" tabindex="0"><code><span class="line"><span style="color:#B07D48">console</span><span style="color:#999999">.</span><span style="color:#59873A">log</span><span style="color:#999999">(</span><span style="color:#B5695977">'</span><span style="color:#B56959">hello world</span><span style="color:#B5695977">'</span><span style="color:#999999">)</span></span></code></pre>
- </div>
+ <div class="var-code"></div>
</div>"
❯ src/code/__tests__/index.spec.js:34:28
|
Run test cases
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading