Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 26, 2024
1 parent 6aa7e08 commit 92fec4a
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 169 deletions.
8 changes: 4 additions & 4 deletions packages/engine-javascript/test/compare.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import type { LanguageRegistration, RegexEngine, ThemeRegistration } from '../..
import type { Instance } from './types'
import { describe, expect, it } from 'vitest'

import { createJavaScriptRegexEngine } from '../../engine-javascript'
import { loadWasm } from '../../engine-oniguruma'
import { loadWasm } from '../../engine-oniguruma/src'
import { OnigScanner, OnigString } from '../../engine-oniguruma/src/oniguruma'
import { createHighlighterCore } from '../../shiki/src/core'
import { createJavaScriptRegexEngine } from '../src'

await loadWasm(import('@shikijs/core/wasm-inlined'))

function createWasmOnigLibWrapper(): RegexEngine & { instances: Instance[] } {
const instances: Instance[] = []
Expand Down Expand Up @@ -143,8 +145,6 @@ const cases: Cases[] = [
]

describe('cases', async () => {
await loadWasm(import('@shikijs/core/wasm-inlined'))

const resolved = await Promise.all(cases.map(async (c) => {
const theme = await c.theme().then(r => r.default)
const lang = await c.lang().then(r => r.default)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/twoslash/test/out/completion-end.ts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/twoslash/test/out/completion-end.ts.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/twoslash/test/out/highlights.ts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/twoslash/test/out/highlights.ts.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 92fec4a

Please sign in to comment.