Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 14, 2017
2 parents 6e8f2cc + 99663d7 commit 008b8fa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.0.11"></a>
## [1.0.11](https://github.com/adonisjs/adonis-ignitor/compare/v1.0.10...v1.0.11) (2017-09-14)


### Features

* **ignitor:** switch node env to testing on exec test command ([10ba6bd](https://github.com/adonisjs/adonis-ignitor/commit/10ba6bd))



<a name="1.0.10"></a>
## [1.0.10](https://github.com/adonisjs/adonis-ignitor/compare/v1.0.9...v1.0.10) (2017-08-22)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adonisjs/ignitor",
"version": "1.0.10",
"version": "1.0.11",
"description": "Fire the adonis-app (in good sense)",
"main": "index.js",
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions src/Ignitor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,19 @@ class Ignitor {
* @return {void}
*/
async fireAce () {
/**
* Since ignitor is just used by Adonis, I am taking the privelage
* to update the `NODE_ENV` to testing when `test` command is
* executed.
*
* This is the only place I can do this weird thing, since everything
* else is executed once the app has been booted, and changing
* the node env will have no impact.
*/
if (process.argv.slice(2)[0] === 'test') {
process.env.NODE_ENV = 'testing'
}

this.loadCommands()
await this.fire()
const ace = require(path.join(this._appRoot, '/node_modules/@adonisjs/ace'))
Expand Down

0 comments on commit 008b8fa

Please sign in to comment.