Including all the available skeletons in Meteor create command test suite

This commit is contained in:
filipenevola
2021-09-03 21:03:09 -07:00
parent 9ab19e7296
commit 6483482203
2 changed files with 3 additions and 9 deletions

View File

@@ -503,7 +503,7 @@ main.registerCommand({
// create
///////////////////////////////////////////////////////////////////////////////
const DEFAULT_SKELETON = "react";
const AVAILABLE_SKELETONS = [
export const AVAILABLE_SKELETONS = [
"apollo",
"bare",
"blaze",

View File

@@ -1,4 +1,5 @@
var selftest = require('../tool-testing/selftest.js');
const { AVAILABLE_SKELETONS } = require("../cli/commands");
var Sandbox = selftest.Sandbox;
const SIMPLE_WAREHOUSE = { v1: { recommended: true } };
@@ -44,16 +45,9 @@ selftest.define("create main", function () {
run.read('Available');
run.match('leaderboard');
run.expectExit(0);
// XXX test that --list always gives you the examples of the current
// release!
// XXX XXX more more
});
["bare",
"minimal",
"full",
].forEach(template => {
AVAILABLE_SKELETONS.forEach(template => {
selftest.define("create --" + template, function () {
const s = new Sandbox;