deprecate cli/load

This commit deprecates `cli/load` so that we can write a new
implementation, and then make an atomic switch.

Test plan: `yarn test --full`
This commit is contained in:
Dandelion Mané 2019-07-18 14:30:21 +01:00
parent 4ae502bfd3
commit 1f7ee2ed1c
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ import {
makeLoadDefaultPlugins,
loadIndividualPlugin,
help,
} from "./load";
} from "./deprecated_load";
import * as RepoIdRegistry from "../core/repoIdRegistry";
import {makeRepoId} from "../core/repoId";
@ -27,7 +27,7 @@ const execDependencyGraph: JestMockFn = (require("../tools/execDependencyGraph")
const loadGithubData: JestMockFn = (require("../plugins/github/loadGithubData")
.loadGithubData: any);
describe("cli/load", () => {
describe("cli/deprecated_load", () => {
beforeEach(() => {
jest.clearAllMocks();
// Tests should call `newSourcecredDirectory` directly when they

View File

@ -4,7 +4,7 @@
import type {Command} from "./command";
import dedent from "../util/dedent";
import {help as loadHelp} from "./load";
import {help as loadHelp} from "./deprecated_load";
import {help as analyzeHelp} from "./analyze";
import {help as pagerankHelp} from "./pagerank";
import {help as scoresHelp} from "./scores";

View File

@ -6,7 +6,7 @@ import type {Command} from "./command";
import {VERSION_SHORT} from "../core/version";
import help from "./help";
import load from "./load";
import load from "./deprecated_load";
import analyze from "./analyze";
import pagerank from "./pagerank";
import scores from "./scores";

View File

@ -12,7 +12,7 @@ function mockCommand(name) {
}
jest.mock("./help", () => mockCommand("help"));
jest.mock("./load", () => mockCommand("load"));
jest.mock("./deprecated_load", () => mockCommand("load"));
jest.mock("./analyze", () => mockCommand("analyze"));
jest.mock("./pagerank", () => mockCommand("pagerank"));
jest.mock("./clear", () => mockCommand("clear"));