Skip to content

Commit

Permalink
Add test for installing starter using 'gatsby new'
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Jun 14, 2016
1 parent 885d326 commit ae6e01a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integration/install-starter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import test from 'ava'
import fs from 'fs-extra'
import Promise from 'bluebird'
const remove = Promise.promisify(fs.remove)
const tmpdir = require('os').tmpdir()

import { gatsby } from '../support'

test('calling gatsby new succesfully creates new site from default starter', async t => {
await remove(`${tmpdir}/gatsby-default-starter`)
const noArgs = await gatsby(['new', `${tmpdir}/tmp/gatsby-default-starter`])
console.log(noArgs)
t.is(noArgs.code, 0)
})

0 comments on commit ae6e01a

Please sign in to comment.