/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/__tests__/runProgrammaticallyMultipleProjects.test.ts
19 строк
659 B
Tom Mrazauskas
refactor: use `util.stripVTControlCharacters()` instead of `strip-ansi` (#15627)
28 май 2025, 08:01
Не верифицирован
28 май 2025, 08:01
7998905
Код
Авторство
О чём код?
/** * 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. */ import {resolve} from 'path'; import {stripVTControlCharacters as stripAnsi} from 'util'; import {extractSummary, run} from '../Utils'; const dir = resolve(__dirname, '../run-programmatically-multiple-projects'); test('run programmatically with multiple projects', () => { const {stderr, exitCode} = run('node run-jest.js', dir); const {summary} = extractSummary(stripAnsi(stderr)); expect(exitCode).toBe(0); expect(summary).toMatchSnapshot('summary'); });