mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
26 lines
491 B
JavaScript
26 lines
491 B
JavaScript
'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;
|