/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-mdx-loader/src/__tests__/processor.test.ts
35 строк
895 B
Sébastien Lorber
refactor(test): use explicit Vitest imports, disable globals (#12019)
15 май 2026, 11:01
Не верифицирован
15 май 2026, 11:01
057ab88
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // import {createProcessor} from '../processor'; // import type {Options} from '../loader'; /* async function testProcess({ format, options, }: { format: 'md' | 'mdx'; options: Options; }) { return async (content: string) => { const processor = await createProcessor({format, options}); return processor.process(content); }; } */ import {describe, it} from 'vitest'; describe('md processor', () => { it('parses simple commonmark', async () => { // TODO no tests for now, wait until ESM support // Jest does not support well ESM modules // It would require to vendor too much Unified modules as CJS // See https://mdxjs.com/docs/troubleshooting-mdx/#esm }); });