Skip to content

Commit

Permalink
Chore: don't include internal test helpers in npm package (#9160)
Browse files Browse the repository at this point in the history
This moves `event-generator-tester` and `test-parser` to an `internal-test-helpers` directory, since they are only used for internal testing and are not needed when installing ESLint as a user.
  • Loading branch information
not-an-aardvark committed Aug 30, 2017
1 parent 6fb32e1 commit e95af9b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/lib/code-path-analysis/code-path-analyzer.js
Expand Up @@ -14,7 +14,7 @@ const assert = require("assert"),
fs = require("fs"),
path = require("path"),
Linter = require("../../../lib/linter"),
EventGeneratorTester = require("../../../lib/testers/event-generator-tester"),
EventGeneratorTester = require("../../../tools/internal-testers/event-generator-tester"),
debug = require("../../../lib/code-path-analysis/debug-helpers"),
CodePath = require("../../../lib/code-path-analysis/code-path"),
CodePathAnalyzer = require("../../../lib/code-path-analysis/code-path-analyzer"),
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/_set-default-parser.js
Expand Up @@ -16,5 +16,5 @@ const path = require("path");
const RuleTester = require("../../../lib/testers/rule-tester");

RuleTester.setDefaultConfig({
parser: path.resolve(__dirname, "../../../lib/testers/test-parser")
parser: path.resolve(__dirname, "../../../tools/internal-testers/test-parser")
});
2 changes: 1 addition & 1 deletion tests/lib/util/node-event-generator.js
Expand Up @@ -13,7 +13,7 @@ const assert = require("assert"),
sinon = require("sinon"),
espree = require("espree"),
estraverse = require("estraverse"),
EventGeneratorTester = require("../../../lib/testers/event-generator-tester"),
EventGeneratorTester = require("../../../tools/internal-testers/event-generator-tester"),
NodeEventGenerator = require("../../../lib/util/node-event-generator");

//------------------------------------------------------------------------------
Expand Down
File renamed without changes.
Expand Up @@ -4,7 +4,7 @@
"use strict";

const espree = require("espree");
const Traverser = require("../util/traverser");
const Traverser = require("../../lib/util/traverser");

/**
* Define `start`/`end` properties as throwing error.
Expand Down

0 comments on commit e95af9b

Please sign in to comment.