How to use the yeoman-generator.test.testDirectory function in yeoman-generator

To help you get started, we’ve selected a few yeoman-generator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rogeriopvl / generator-gulpfile / test / test-creation.js View on Github external
beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('gulpfile:app', [
                '../../app'
            ]);
            done();
        }.bind(this));
    });
github TryGhost / generator-ghost / test / test-creation.js View on Github external
beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('ghost:app', [
                '../../app'
            ]);
            done();
        }.bind(this));
    });
github walmartlabs / generator-thorax / test / sub-generators.spec.js View on Github external
beforeEach(function (done) {
    helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) { return done(err); }

      this.app = helpers.createGenerator('thorax:app', ['../../app'], 'test');
      this.app.options['skip-install'] = true;

      helpers.mockPrompt(this.app, {
        'newDirectory': false,
        'starterApp': "None",
        'styleProcessor': "none",
        'includeCoffeeScript': requireOption(this.includeCoffeeScript, "Forgot this.includeCoffeeScript setting"),
        'useZepto': false
      });

      this.app.run({}, done);
    }.bind(this));
  });
github krakenjs / generator-swaggerize / test / test-create.js View on Github external
function setup (done) {
        helpers.testDirectory(testDir, function (err) {
            if (err) {
                return done(err);
            }

            app = helpers.createGenerator('swaggerize:app', [
                '../../app'
            ]);

            done();
        });
    }
github angular-fullstack / generator-angular-fullstack / test / test-appname-substitution.js View on Github external
beforeEach(function (done) {
        var deps = [
            '../../app',
            '../../common',
            '../../controller',
            '../../main', [
                helpers.createDummyGenerator(),
                'karma:app'
            ]
        ];
        helpers.testDirectory(path.join(__dirname, folderName), function (err) {
            if (err) {
                done(err);
            }
            angular = helpers.createGenerator('angular-fullstack:app', deps);
            angular.options['skip-install'] = true;
            done();
        });
    });
github sbarski / generator-webapi / test / test-creation.js View on Github external
beforeEach(function (done) {
    helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) {
        return done(err);
      }

      this.app = helpers.createGenerator('webapi:app', [
        '../../app'
      ]);
      done();
    }.bind(this));
  });
github walmartlabs / generator-thorax / test / spec-generators.spec.js View on Github external
beforeEach(function (done){
    helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) { return done(err); }

      this.app = helpers.createGenerator('thorax:app', ['../../app'], 'test');
      this.app.options['skip-install'] = true;

      helpers.mockPrompt(this.app, {
        'newDirectory': false,
        'starterApp': "None",
        'styleProcessor': "none",
        'includeCoffeeScript': requireOption(this.includeCoffeeScript, "Forgot this.includeCoffeeScript option"),
        'useZepto': false
      });

      this.app.run({}, done);
    }.bind(this));
  });
github jroblak / generator-phaser-browserify / test / test-creation.js View on Github external
beforeEach(function (done) {
    helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
      if (err) {
        return done(err);
      }

      this.app = helpers.createGenerator('phaser:app', [
        '../../app'
      ]);
      done();
    }.bind(this));
  });
github backbone-boilerplate / generator-bbb / test / bbb-app.js View on Github external
before(function (done) {
      helpers.testDirectory(path.join(__dirname, "temp"), function() {
        this.app = helpers.createGenerator("bbb:app", [
          path.join(__dirname, "../lib/generators/app")
        ]);
        this.app.options["skip-install"] = true;
        helpers.mockPrompt(this.app, { indent: { style : "tab", size : 1 } });
        this.app.run({}, function () { done(); });
      }.bind(this));
    });
github jimschubert / generator-tizenwebui / test / test-creation.js View on Github external
beforeEach(function (done) {
        helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
            if (err) {
                return done(err);
            }

            this.app = helpers.createGenerator('tizenwebui:app', [
                '../../app'
            ]);
            done();
        }.bind(this));
    });