diff --git a/.gitignore b/.gitignore index 2e7e36a1..bb57b9c2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ coverage/ node_modules/ npm-debug.log .eslint-release-info.json +.nyc_output diff --git a/package.json b/package.json index 7895549b..691afdcd 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "scripts": { "lint": "eslint .", "test": "npm run lint && npm run test-cov", - "test-cov": "istanbul cover _mocha -- -c tests/lib/**/*.js", + "test-cov": "nyc _mocha -- -c tests/lib/**/*.js", "generate-release": "eslint-generate-release", "generate-alpharelease": "eslint-generate-prerelease alpha", "generate-betarelease": "eslint-generate-prerelease beta", @@ -36,18 +36,18 @@ "lib/processor.js" ], "devDependencies": { - "chai": "^3.0.0", - "eslint": "^4.19.1", + "chai": "^4.2.0", + "eslint": "^6.6.0", "eslint-config-eslint": "^5.0.1", "eslint-plugin-node": "^6.0.1", - "eslint-release": "^1.0.0", - "istanbul": "^0.4.5", - "mocha": "^2.2.5" + "eslint-release": "^1.2.0", + "mocha": "^6.2.2", + "nyc": "^14.1.1" }, "dependencies": { - "object-assign": "^4.0.1", - "remark-parse": "^5.0.0", - "unified": "^6.1.2" + "object-assign": "^4.1.1", + "remark-parse": "^7.0.1", + "unified": "^8.4.1" }, "engines": { "node": "^6.14.0 || ^8.10.0 || >=9.10.0" diff --git a/tests/lib/plugin.js b/tests/lib/plugin.js index 6fb03b94..f8e04d7d 100644 --- a/tests/lib/plugin.js +++ b/tests/lib/plugin.js @@ -20,6 +20,7 @@ function initCLI(isAutofixEnabled) { const cli = new CLIEngine({ envs: ["browser"], extensions: ["md", "mkdn", "mdown", "markdown"], + plugins: ["markdown"], fix, ignore: false, rules: { diff --git a/tests/lib/processor.js b/tests/lib/processor.js index 0cd7a121..8ebf7134 100644 --- a/tests/lib/processor.js +++ b/tests/lib/processor.js @@ -188,7 +188,7 @@ describe("processor", () => { const blocks = processor.preprocess(code); assert.strictEqual(blocks.length, 1); - assert.strictEqual(blocks[0], "\n\n \n \n"); + assert.strictEqual(blocks[0], "\n\n\n \n \n"); }); it("should ignore code fences with unspecified info string", () => {