diff --git a/apps/web/src/helpers/prosekit/markdown.spec.ts b/apps/web/src/helpers/prosekit/markdown.spec.ts index f3e66d4a7238..80468842917d 100644 --- a/apps/web/src/helpers/prosekit/markdown.spec.ts +++ b/apps/web/src/helpers/prosekit/markdown.spec.ts @@ -15,7 +15,7 @@ describe('markdownFromHTML', () => { test('should not escape mention handles with _', () => { const html = '

A normal handle: @lens/foo

' + - '

A handle with underscore: @lens/foo_bar

' + '

A handle with underscore: @lens/foo_bar

'; const markdown = markdownFromHTML(html); expect(markdown).toContain('@lens/foo'); expect(markdown).toContain('@lens/foo_bar'); diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts index 3786375bfd31..7f182882764e 100644 --- a/apps/web/vitest.config.ts +++ b/apps/web/vitest.config.ts @@ -1,5 +1,9 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ - test: { globals: true, testTimeout: 30000, alias: { '@helpers': '/src/helpers' } }, + test: { + alias: { '@helpers': '/src/helpers' }, + globals: true, + testTimeout: 30000 + } });