From 6483482203da5ca5c52e9b24b64ded1f4ce449ca Mon Sep 17 00:00:00 2001 From: filipenevola Date: Fri, 3 Sep 2021 21:03:09 -0700 Subject: [PATCH] Including all the available skeletons in Meteor create command test suite --- tools/cli/commands.js | 2 +- tools/tests/create.js | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 3bfaf564b0..0b166acc0f 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -503,7 +503,7 @@ main.registerCommand({ // create /////////////////////////////////////////////////////////////////////////////// const DEFAULT_SKELETON = "react"; -const AVAILABLE_SKELETONS = [ +export const AVAILABLE_SKELETONS = [ "apollo", "bare", "blaze", diff --git a/tools/tests/create.js b/tools/tests/create.js index 984e3c0234..ddb7fcddd3 100644 --- a/tools/tests/create.js +++ b/tools/tests/create.js @@ -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;