You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
491 B

'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;