Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 8009f02

Browse files
committed
fix(tests): Add set DEBUG from environment
1 parent 4cc2b3a commit 8009f02

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

test/app-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { App } from '../src/lib/app';
77

88
const assert = chai.assert;
99
describe('App', () => {
10-
const debug = false;
10+
const debug = process.env.DEBUG;
1111
describe('#clear()', () => {
1212
const dir = path.resolve(`${__dirname}/fixture/apps/app1`);
1313
const dirDist = path.resolve(`${dir}/dist`);

test/apps-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Apps } from '../src/lib/apps';
77

88
const assert = chai.assert;
99
describe('Apps', () => {
10-
const debug = false;
10+
const debug = process.env.DEBUG;
1111
describe('#prepare()', () => {
1212
const items: any[] = [];
1313
const dirRoot = path.resolve(__dirname + '/../');

test/cmd-apps-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const npmRun = require('npm-run');
77
const assert = chai.assert;
88

99
describe('Apps:run from console', () => {
10-
const debug = false;
10+
const debug = process.env.DEBUG;
1111
describe('#prepare()', () => {
1212
const items: any[] = [];
1313
const dirRoot = path.resolve(__dirname + '/../');

test/cmd-libs-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const npmRun = require('npm-run');
77
const assert = chai.assert;
88

99
describe('Libs:run from console', () => {
10-
const debug = false;
10+
const debug = process.env.DEBUG;
1111
describe('#prepare()', () => {
1212
const items: any[] = [];
1313
const dirRoot = path.resolve(__dirname + '/../');

test/fixture/apps/app1/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@test/app1",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"peerDependencies": {
55
"@angular/common": "*",
66
"@angular/compiler": "*",

test/fixture/apps/subFolder/app2/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@test/app2",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"peerDependencies": {
55
"@angular/common": "*",
66
"@angular/compiler": "*",

test/fixture/libs/lib1/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@test/lib1",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"peerDependencies": {
55
"@angular/common": "*",
66
"@angular/compiler": "*",

test/fixture/libs/subFolder/lib2/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@test/lib2",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"peerDependencies": {
55
"@angular/common": "*",
66
"@angular/compiler": "*",

test/lib-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Lib } from '../src/lib/lib';
77

88
const assert = chai.assert;
99
describe('Lib', () => {
10-
const debug = false;
10+
const debug = process.env.DEBUG;
1111
describe('#clear()', () => {
1212
const dir = path.resolve(`${__dirname}/fixture/libs/lib1`);
1313
const dirDist = path.resolve(`${dir}/dist`);

test/libs-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Libs } from '../src/lib/libs';
77

88
const assert = chai.assert;
99
describe('Libs', () => {
10-
const debug = false;
10+
const debug = process.env.DEBUG;
1111
describe('#prepare()', () => {
1212
const items: any[] = [];
1313
const dirRoot = path.resolve(__dirname + '/../');

0 commit comments

Comments
 (0)