/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/scripts/run-test-app.js
25 строк
491 B
Ben Irvin
test: restructure test dirs
02 апр 2024, 12:19
Не верифицирован
02 апр 2024, 12:19
cf82c83
Код
Авторство
О чём код?
'use strict'; process.env.NODE_ENV = 'test'; const yargs = require('yargs'); const { runTestApp } = require('../helpers/test-app'); // eslint-disable-next-line no-unused-expressions yargs .command( '$0 [appPath]', 'Run test app', (yarg) => { yarg.positional('appPath', { type: 'string', default: 'test-apps/base', }); }, (argv) => { const { appPath = 'test-apps/base' } = argv; runTestApp(appPath); } ) .help().argv;