describe('create-migration-test.js', function() {

})
@@ -1,8 +1,210 @@
+const %7BwipeWorkspace, configure, runMigrations, expectFailure%7D = require('./test-utils'),%0A  core = require('../src/core'),%0A  fs = require('fs'),%0A  %7Bassert%7D = require('chai'),%0A  path = require('path')%0A%0A%0A
 describe
@@ -244,12 +244,1877 @@
 tion
+ 
 () %7B%0A
+  before(function () %7B%0A    configure()%0A  %7D)%0A%0A  beforeEach(function () %7B%0A    wipeWorkspace()%0A  %7D)%0A%0A  it('is able to create migrations', async function () %7B%0A    await core.createMigrationScript('eins')%0A    const migrations = await core.loadAllMigrations()%0A    assert.ok(fs.existsSync(path.join(__dirname, '../test-workspace/eins.migsi.js')))%0A    assert.equal(migrations%5B0%5D.friendlyName, 'eins')%0A  %7D)%0A%0A  describe('it is possible to use', function () %7B%0A    it('default templates', async function () %7B%0A      await core.createMigrationScript('drei', 'default')%0A%0A      await expectFailure(runMigrations(), err =%3E assert.equal(err.message, 'Not implemented'))%0A    %7D)%0A    it('custom templates', async function () %7B%0A      const templateDir = path.join(__dirname, '../test-workspace')%0A      configure(%7BtemplateDir%7D)%0A      const templateData = %60module.exports = %7B run() %7B throw new Error('custom')%7D%7D%60%0A      fs.writeFileSync(templateDir + '/custom.js', templateData, 'UTF-8')%0A      await core.createMigrationScript('drei', 'custom')%0A%0A      await expectFailure(runMigrations(), err =%3E assert.equal(err.message, 'custom'))%0A    %7D)%0A  %7D)%0A%0A  it('friendly name is set up properly within the migration (assuming template support)', async function () %7B%0A    await core.createMigrationScript('zwei')%0A    const migrations = await core.loadAllMigrations()%0A    assert.equal(migrations%5B0%5D.friendlyName, 'zwei')%0A  %7D)%0A%0A  it('default dependency is set up properly within the migration (assuming template support)', async function () %7B%0A    await core.createMigrationScript('ichi')%0A    await core.createMigrationScript('ni')%0A    await core.createMigrationScript('san')%0A%0A    const migrations = await core.loadAllMigrations()%0A    assert.deepEqual(migrations%5B0%5D.dependencies, %5B%5D)%0A    assert.deepEqual(migrations%5B1%5D.dependencies, %5B'ichi'%5D)%0A    assert.deepEqual(migrations%5B2%5D.dependencies, %5B'ni'%5D)%0A  %7D)
 %0A%7D)

Implement create-migration-test