From b2dbb89d0c4befd667d9cd767af76861cab1e1c1 Mon Sep 17 00:00:00 2001 From: bja Date: Sun, 4 Feb 2018 08:29:21 +0000 Subject: [PATCH 1/2] Updates dependencies except rewire --- .idea/codeStyles/Project.xml | 25 ++++++++++++++++ .idea/codeStyles/codeStyleConfig.xml | 5 ++++ lib/reporter-standard-console.ts | 2 +- lib/reporter.ts | 9 ++++-- package.json | 44 ++++++++++++++-------------- 5 files changed, 60 insertions(+), 25 deletions(-) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..4acf10d --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/lib/reporter-standard-console.ts b/lib/reporter-standard-console.ts index 9def751..ab97f5a 100644 --- a/lib/reporter-standard-console.ts +++ b/lib/reporter-standard-console.ts @@ -18,7 +18,7 @@ export interface ReporterStandardConsole { export class ReporterStandardConsoleImp implements ReporterStandardConsole { private headerStyle: Chalk = chalk.bold; - private initArgs: plugin.RunArgs; + private initArgs?: plugin.RunArgs; private logger: plugin.PluginReporterLogger; private decorator: plugin.TestResultDecorator; private testResultFormatter: TestResultFormatter; diff --git a/lib/reporter.ts b/lib/reporter.ts index b87c703..7e9c412 100644 --- a/lib/reporter.ts +++ b/lib/reporter.ts @@ -2,6 +2,7 @@ import * as Bluebird from "bluebird"; import * as program from "commander"; import * as _ from "lodash"; import * as plugin from "./plugin"; +import * as defaultReporterPlugin from "../plugin/default-reporter/reporter-plugin"; interface PartialTestRunSummary { config: plugin.TestReportConfig; @@ -37,10 +38,14 @@ export interface TestDebugLogMessages { } export class ReporterImp implements Reporter { - public testDebugLogMessages: TestDebugLogMessages[]; + public testDebugLogMessages: TestDebugLogMessages[] = []; private reporterPlugin: plugin.PluginReporter; + constructor(defaultReporter: plugin.PluginReporter) { + this.reporterPlugin = defaultReporter; + } + public configure(reporterPlugin: plugin.PluginReporter): void { this.reporterPlugin = reporterPlugin; } @@ -208,5 +213,5 @@ export class ReporterImp implements Reporter { } export function createReporter(): Reporter { - return new ReporterImp(); + return new ReporterImp(defaultReporterPlugin.createPlugin()); } diff --git a/package.json b/package.json index 4d149fe..981ea9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lobo", - "version": "0.4.0", + "version": "0.4.1", "description": "Elm test runner", "keywords": [ "elm", @@ -28,28 +28,28 @@ "dependencies": { "bluebird": "^3.5.1", "chalk": "^2.3.0", - "chokidar": "^1.7.0", - "commander": "^2.11.0", + "chokidar": "^2.0.0", + "commander": "^2.13.0", "fast-levenshtein": "^2.0.5", - "lodash": "^4.16.4", - "promptly": "^2.2.0", - "shelljs": "^0.7.7", + "lodash": "^4.17.5", + "promptly": "^3.0.3", + "shelljs": "^0.8.1", "tmp": "^0.0.33" }, "devDependencies": { - "@types/bluebird": "^3.5.18", - "@types/chai": "^4.0.3", + "@types/bluebird": "^3.5.20", + "@types/chai": "^4.1.2", "@types/chai-things": "0.0.32", - "@types/chokidar": "^1.7.3", + "@types/chokidar": "^1.7.4", "@types/commander": "^2.11.0", "@types/fast-levenshtein": "0.0.1", - "@types/lodash": "^4.14.81", - "@types/mocha": "^2.2.44", - "@types/node": "^8.0.47", + "@types/lodash": "^4.14.100", + "@types/mocha": "^2.2.48", + "@types/node": "^9.4.0", "@types/promptly": "^1.1.28", "@types/rewire": "^2.5.28", - "@types/shelljs": "^0.7.5", - "@types/sinon": "^2.3.7", + "@types/shelljs": "^0.7.8", + "@types/sinon": "^4.1.3", "@types/sinon-chai": "^2.7.28", "@types/tmp": "^0.0.33", "@types/wallabyjs": "^0.0.6", @@ -57,18 +57,18 @@ "chai-things": "^0.2.0", "coveralls": "^3.0.0", "istanbul": "^0.4.5", - "mocha": "^4.0.1", - "mocha-junit-reporter": "^1.15.0", + "mocha": "^5.0.0", + "mocha-junit-reporter": "^1.17.0", "mocha-lcov-reporter": "^1.2.0", - "nyc": "^11.3.0", + "nyc": "^11.4.1", "rewire": "^2.5.2", "rimraf": "^2.6.2", - "sinon": "^4.1.1", + "sinon": "^4.2.2", "sinon-chai": "^2.14.0", - "source-map-support": "^0.5.0", - "ts-node": "^3.3.0", - "tslint": "^5.8.0", - "typescript": "^2.6.1" + "source-map-support": "^0.5.3", + "ts-node": "^4.1.0", + "tslint": "^5.9.1", + "typescript": "^2.7.1" }, "nyc": { "exclude": [ From 73327c03c965f6f551a2e2bf50af5a1965aa29d6 Mon Sep 17 00:00:00 2001 From: bja Date: Sun, 4 Feb 2018 14:37:53 +0000 Subject: [PATCH 2/2] Downgrade promptly to 2.2.0 that works with node 6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 981ea9e..91927d9 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "commander": "^2.13.0", "fast-levenshtein": "^2.0.5", "lodash": "^4.17.5", - "promptly": "^3.0.3", + "promptly": "^2.2.0", "shelljs": "^0.8.1", "tmp": "^0.0.33" },