mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-15 23:25:35 +00:00
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:
parent
4ae502bfd3
commit
1f7ee2ed1c
@ -11,7 +11,7 @@ import {
|
|||||||
makeLoadDefaultPlugins,
|
makeLoadDefaultPlugins,
|
||||||
loadIndividualPlugin,
|
loadIndividualPlugin,
|
||||||
help,
|
help,
|
||||||
} from "./load";
|
} from "./deprecated_load";
|
||||||
|
|
||||||
import * as RepoIdRegistry from "../core/repoIdRegistry";
|
import * as RepoIdRegistry from "../core/repoIdRegistry";
|
||||||
import {makeRepoId} from "../core/repoId";
|
import {makeRepoId} from "../core/repoId";
|
||||||
@ -27,7 +27,7 @@ const execDependencyGraph: JestMockFn = (require("../tools/execDependencyGraph")
|
|||||||
const loadGithubData: JestMockFn = (require("../plugins/github/loadGithubData")
|
const loadGithubData: JestMockFn = (require("../plugins/github/loadGithubData")
|
||||||
.loadGithubData: any);
|
.loadGithubData: any);
|
||||||
|
|
||||||
describe("cli/load", () => {
|
describe("cli/deprecated_load", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jest.clearAllMocks();
|
jest.clearAllMocks();
|
||||||
// Tests should call `newSourcecredDirectory` directly when they
|
// Tests should call `newSourcecredDirectory` directly when they
|
@ -4,7 +4,7 @@
|
|||||||
import type {Command} from "./command";
|
import type {Command} from "./command";
|
||||||
import dedent from "../util/dedent";
|
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 analyzeHelp} from "./analyze";
|
||||||
import {help as pagerankHelp} from "./pagerank";
|
import {help as pagerankHelp} from "./pagerank";
|
||||||
import {help as scoresHelp} from "./scores";
|
import {help as scoresHelp} from "./scores";
|
||||||
|
@ -6,7 +6,7 @@ import type {Command} from "./command";
|
|||||||
import {VERSION_SHORT} from "../core/version";
|
import {VERSION_SHORT} from "../core/version";
|
||||||
|
|
||||||
import help from "./help";
|
import help from "./help";
|
||||||
import load from "./load";
|
import load from "./deprecated_load";
|
||||||
import analyze from "./analyze";
|
import analyze from "./analyze";
|
||||||
import pagerank from "./pagerank";
|
import pagerank from "./pagerank";
|
||||||
import scores from "./scores";
|
import scores from "./scores";
|
||||||
|
@ -12,7 +12,7 @@ function mockCommand(name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jest.mock("./help", () => mockCommand("help"));
|
jest.mock("./help", () => mockCommand("help"));
|
||||||
jest.mock("./load", () => mockCommand("load"));
|
jest.mock("./deprecated_load", () => mockCommand("load"));
|
||||||
jest.mock("./analyze", () => mockCommand("analyze"));
|
jest.mock("./analyze", () => mockCommand("analyze"));
|
||||||
jest.mock("./pagerank", () => mockCommand("pagerank"));
|
jest.mock("./pagerank", () => mockCommand("pagerank"));
|
||||||
jest.mock("./clear", () => mockCommand("clear"));
|
jest.mock("./clear", () => mockCommand("clear"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user