Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 14, 2024
1 parent f4dd9dc commit b516d72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions packages/engine-javascript/test/verify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ import fg from 'fast-glob'
import { describe, expect, it, onTestFailed } from 'vitest'
import { JavaScriptScanner } from '../src'

describe.skipIf(
+process.versions.node.split('.')[0] < 20,
)('verify', async () => {
describe('verify', async () => {
if (+process.versions.node.split('.')[0] < 20) {
it('skip', () => {})
return
}

const files = await fg('*.json', {
cwd: fileURLToPath(new URL('./__records__', import.meta.url)),
absolute: true,
Expand Down
5 changes: 4 additions & 1 deletion packages/shiki/test/core-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { createHighlighterCoreSync } from '../src/core'
import js from '../src/langs/javascript.mjs'
import nord from '../src/themes/nord.mjs'

describe('should', () => {
describe.skipIf(
// JavaScript engine requires Node v20+
+process.versions.node.split('.')[0] < 20,
)('should', () => {
const engine = createJavaScriptRegexEngine()

it('works', () => {
Expand Down

0 comments on commit b516d72

Please sign in to comment.