/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/run-programmatically-multiple-projects/run-jest.js
22 строки
591 B
Simen Bekkhus
chore: errors should be named as such (#14817)
30 дек 2023, 14:05
Не верифицирован
30 дек 2023, 14:05
2ddc430
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const {runCLI} = require('@jest/core'); const config = { projects: [ {testMatch: ['<rootDir>/client/**/*.test.js']}, {testMatch: ['<rootDir>/server/**/*.test.js']}, ], }; runCLI({config: JSON.stringify(config)}, [process.cwd()]) .then(() => console.log('run-programmatically-mutiple-projects completed')) .catch(error => { console.error(error); process.exitCode = 1; });