/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/setup.ts
17 строк
482 B
Sébastien Lorber
chore: migration from Jest to Vitest (#12010)
14 май 2026, 18:34
Не верифицирован
14 май 2026, 18:34
be553e0
Код
Авторство
О чём код?
/** * 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 {createRequire} from 'node:module'; const require = createRequire(import.meta.url); // Only created to fix test: website/src/data/__tests__/user.test.ts for (const ext of ['.png']) { require.extensions[ext] = (module: any, _filename: string) => { module.exports = null; }; }