From de04127eb7833e137739c3103b66432e9d45b4ac Mon Sep 17 00:00:00 2001 From: Walker Leite Date: Thu, 12 Jul 2018 18:30:13 -0300 Subject: [PATCH 1/3] test(test): fix listeners limit --- test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.js b/test.js index a21f104..f4aa1f0 100644 --- a/test.js +++ b/test.js @@ -1,5 +1,7 @@ const {spawn} = require('child_process'); +process.setMaxListeners(20); // increase listeners limit + const initQuestions = [ {search: /^\?.+/, response: '\n'}, ]; From 7bc077a52c364b6d8af2db4cd20a6d07983f57fc Mon Sep 17 00:00:00 2001 From: Walker Leite Date: Fri, 13 Jul 2018 10:29:15 -0300 Subject: [PATCH 2/3] test(models): remove unused test for not-extended config --- meta.js | 1 + test.js | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/meta.js b/meta.js index 535528b..b1686f9 100644 --- a/meta.js +++ b/meta.js @@ -32,6 +32,7 @@ module.exports = { 'client/view/**/*': 'extended', 'server/boot/add-initial-data.js': 'extended', 'server/boot/create-admin.js': 'extended', + 'server/boot/__tests__/create-admin.spec.js': 'extended', 'server/initial-data/**/*': 'extended', 'server/models/**/*': 'extended', 'test/client/components/**/*': 'extended', diff --git a/test.js b/test.js index f4aa1f0..a2b730c 100644 --- a/test.js +++ b/test.js @@ -13,12 +13,12 @@ const initNoExtQuestions = [ /* eslint-disable max-len */ const commands = [ - {cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true}, - {cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initQuestions}, - {cmd: 'npm', args: ['install'], cwd: 'test-project'}, - {cmd: 'npm', args: ['run', 'lint'], cwd: 'test-project'}, - {cmd: 'npm', args: ['run', 'test'], cwd: 'test-project'}, - {cmd: 'npm', args: ['run', 'build'], cwd: 'test-project'}, + // {cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true}, + // {cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initQuestions}, + // {cmd: 'npm', args: ['install'], cwd: 'test-project'}, + // {cmd: 'npm', args: ['run', 'lint'], cwd: 'test-project'}, + // {cmd: 'npm', args: ['run', 'test'], cwd: 'test-project'}, + // {cmd: 'npm', args: ['run', 'build'], cwd: 'test-project'}, {cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true}, {cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initNoExtQuestions}, {cmd: 'npm', args: ['install'], cwd: 'test-project'}, From 08cf23ee7730fc34583c01554dfc3353453efa3e Mon Sep 17 00:00:00 2001 From: Walker Leite Date: Fri, 13 Jul 2018 10:29:47 -0300 Subject: [PATCH 3/3] test(test): comment out commands --- test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test.js b/test.js index a2b730c..f4aa1f0 100644 --- a/test.js +++ b/test.js @@ -13,12 +13,12 @@ const initNoExtQuestions = [ /* eslint-disable max-len */ const commands = [ - // {cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true}, - // {cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initQuestions}, - // {cmd: 'npm', args: ['install'], cwd: 'test-project'}, - // {cmd: 'npm', args: ['run', 'lint'], cwd: 'test-project'}, - // {cmd: 'npm', args: ['run', 'test'], cwd: 'test-project'}, - // {cmd: 'npm', args: ['run', 'build'], cwd: 'test-project'}, + {cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true}, + {cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initQuestions}, + {cmd: 'npm', args: ['install'], cwd: 'test-project'}, + {cmd: 'npm', args: ['run', 'lint'], cwd: 'test-project'}, + {cmd: 'npm', args: ['run', 'test'], cwd: 'test-project'}, + {cmd: 'npm', args: ['run', 'build'], cwd: 'test-project'}, {cmd: 'rm', args: ['-r', 'test-project'], ignoreErrors: true}, {cmd: './node_modules/.bin/vue', args: ['init', '.', 'test-project'], responses: initNoExtQuestions}, {cmd: 'npm', args: ['install'], cwd: 'test-project'},