strapi/tests/scripts/run-test-app.js
2024-04-02 11:19:43 +02:00

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;