@backstage/cli
Version:
CLI for developing Backstage plugins and apps
27 lines (23 loc) • 1.22 kB
JavaScript
var lazy = require('../../lib/lazy.cjs.js');
function registerRepoCommands(command) {
command.command("test").allowUnknownOption(true).option(
"--since <ref>",
"Only test packages that changed since the specified ref"
).option(
"--successCache",
"Enable success caching, which skips running tests for unchanged packages that were successful in the previous run"
).option(
"--successCacheDir <path>",
"Set the success cache location, (default: node_modules/.cache/backstage-cli)"
).option(
"--jest-help",
"Show help for Jest CLI options, which are passed through"
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy.lazy(() => import('./commands/repo/test.cjs.js'), "command"));
}
function registerPackageCommands(command) {
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy.lazy(() => import('./commands/package/test.cjs.js'), "default"));
}
exports.registerPackageCommands = registerPackageCommands;
exports.registerRepoCommands = registerRepoCommands;
//# sourceMappingURL=index.cjs.js.map
;