Skip to content

Commit

Permalink
Moves integration tests into ignite-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonholmgren committed May 2, 2017
1 parent ba484c3 commit e884af6
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 66 deletions.
14 changes: 10 additions & 4 deletions packages/ignite-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
},
"preferGlobal": true,
"scripts": {
"test": "ava",
"watch": "ava --watch",
"test": "ava tests/fast",
"watch": "ava tests/fast --watch",
"coverage": "nyc ava",
"start": "node src/index.js",
"lint": "standard"
"lint": "standard",
"integration": "ava -s tests/integration"
},
"repository": "infinitered/ignite",
"author": {
Expand All @@ -29,6 +30,8 @@
],
"license": "MIT",
"dependencies": {
"execa": "^0.6.0",
"fs-jetpack": "^0.11.0",
"gluegun": "^0.17.1",
"gluegun-patching": "^0.3.0",
"minimist": "^1.2.0",
Expand All @@ -49,7 +52,10 @@
},
"ava": {},
"standard": {
"parser": "babel-eslint"
"parser": "babel-eslint",
"globals": [
"__DEV__"
]
},
"devEngines": {
"node": ">=7.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mockery.registerMock('gluegun', {
})

// now we can bring in header
const header = require('../../src/brand/header')
const header = require('../../../src/brand/header')

// our mock will be pushing print statements here
let infos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mockery.registerMock('gluegun', {
})

// our cli
const cli = require('../../src/cli/cli')
const cli = require('../../../src/cli/cli')

test('ignite', async t => {
mockGluegunBuilder.onCreateRuntime(builderProps => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mockery.registerMock('gluegun', {
})

// our cli
const cli = require('../../src/cli/cli')
const cli = require('../../../src/cli/cli')

test('ignite', async t => {
const mockGluegunRunContext = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mockery.registerMock('gluegun', {
})

// our cli
const cli = require('../../src/cli/cli')
const cli = require('../../../src/cli/cli')

test('ignite', async t => {
const mockGluegunRunContext = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mockery.registerMock('gluegun', {
})

// our cli
const cli = require('../../src/cli/cli')
const cli = require('../../../src/cli/cli')

test('ignite --version or -v', async t => {
t.plan(4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mockery.registerMock('gluegun', {
})

// our cli
const cli = require('../../src/cli/cli')
const cli = require('../../../src/cli/cli')

test('ignite', async t => {
const mockRuntime = { whatever: 69 }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require('ava')
const extension = require('../../src/extensions/ignite/findIgnitePlugins')
const extension = require('../../../src/extensions/ignite/findIgnitePlugins')

test('has the right interface', t => {
t.is(typeof extension, 'function')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require('ava')
const attach = require('../../src/extensions/ignite.js')
const attach = require('../../../src/extensions/ignite.js')

test('has the right interface', t => {
t.is(typeof attach, 'function')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const test = require('ava')
const filesystem = require('fs-jetpack')
const detectInstall = require('../../src/lib/detectInstall')
const detectInstall = require('../../../src/lib/detectInstall')
const path = require('path')
const mockFs = require('mock-fs')

Expand Down Expand Up @@ -38,7 +38,7 @@ test('detects plugins from a full path', async t => {

test('detects plugins from a relative path', async t => {
const moduleName = 'ignite-valid-plugin'
const directory = `tests/fixtures/${moduleName}`
const directory = `tests/fast/fixtures/${moduleName}`
const actual = detectInstall({
filesystem,
parameters: { second: directory }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require('ava')
const detectedChanges = require('../../src/lib/detectedChanges')
const detectedChanges = require('../../../src/lib/detectedChanges')

test('empty objects', t => {
const actual = detectedChanges({}, {})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require('ava')
const exitCodes = require('../../src/lib/exitCodes')
const exitCodes = require('../../../src/lib/exitCodes')
const { values, sortBy, identity, pipe, uniq, length } = require('ramda')
const { rangeStep } = require('ramdasauce')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require('ava')
const isIgniteDirectory = require('../../src/lib/isIgniteDirectory')
const isIgniteDirectory = require('../../../src/lib/isIgniteDirectory')
const mockFs = require('mock-fs')

// unhook the fs mocks
Expand Down
1 change: 0 additions & 1 deletion packages/ignite-integration-tests/.gitignore

This file was deleted.

40 changes: 0 additions & 40 deletions packages/ignite-integration-tests/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions packages/ignite-integration-tests/readme.md

This file was deleted.

0 comments on commit e884af6

Please sign in to comment.