File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 96
96
"resolve" : " ^1.22.8" ,
97
97
"resolve-from" : " ^5.0.0" ,
98
98
"resolve-global" : " ^2.0.0" ,
99
- "shikiji" : " ^0.8.7" ,
100
99
"shiki" : " npm:shikiji-compat@^0.8.7" ,
100
+ "shikiji" : " ^0.8.7" ,
101
101
"shikiji-twoslash" : " ^0.8.7" ,
102
102
"sirv" : " ^2.0.3" ,
103
103
"unocss" : " ^0.58.0" ,
Original file line number Diff line number Diff line change 6
6
} from '@slidev/cli/node/plugins/markdown'
7
7
import { describe , expect , it } from 'vitest'
8
8
9
+ const isMacOS = process . platform === 'darwin'
10
+
9
11
describe ( 'markdown transform' , ( ) => {
10
12
it ( 'slot-sugar' , ( ) => {
11
13
expect ( transformSlotSugar ( `
@@ -99,7 +101,10 @@ C -->|Two| E[Result 2]
99
101
` ) ) . toMatchSnapshot ( )
100
102
} )
101
103
102
- it ( 'plantUML' , ( ) => {
104
+ // TODO: not so sure on this,
105
+ // it seems the encode result of `plantuml-encoder` is different across platforms since Node 18
106
+ // we may need to find a better way to test this
107
+ it . runIf ( isMacOS ) ( 'plantUML' , ( ) => {
103
108
expect ( transformPlantUml ( `
104
109
# Page
105
110
You can’t perform that action at this time.
0 commit comments