mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Including all the available skeletons in Meteor create command test suite
This commit is contained in:
@@ -503,7 +503,7 @@ main.registerCommand({
|
||||
// create
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
const DEFAULT_SKELETON = "react";
|
||||
const AVAILABLE_SKELETONS = [
|
||||
export const AVAILABLE_SKELETONS = [
|
||||
"apollo",
|
||||
"bare",
|
||||
"blaze",
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user