/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/e2e/setup/200-create-project-dir.ts
19 строк
646 B
Alan Agius
test: migrate legacy CLI tests to e2e directory
17 дек 2025, 19:36
17 дек 2025, 19:36
7d3e0ad
Код
Авторство
О чём код?
import { mkdir } from 'node:fs/promises'; import { join } from 'node:path'; import { getGlobalVariable, setGlobalVariable } from '../utils/env'; /** * Create a parent directory for test projects to be created within. * Change the cwd() to that directory in preparation for launching the cli. */ export default async function () { const tempRoot: string = getGlobalVariable('tmp-root'); const projectsRoot = join(tempRoot, 'e2e-test'); setGlobalVariable('projects-root', projectsRoot); await mkdir(projectsRoot); console.log(` Using "${projectsRoot}" as temporary directory for a new project.`); process.chdir(projectsRoot); }