Do not import from config in unit tests
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import type { VariantAnalysisConfig } from "../../src/config";
|
||||
import { GITHUB_URL } from "../../src/config";
|
||||
|
||||
export function createMockVariantAnalysisConfig(): VariantAnalysisConfig {
|
||||
return {
|
||||
controllerRepo: "foo/bar",
|
||||
showSystemDefinedRepositoryLists: true,
|
||||
githubUrl: GITHUB_URL,
|
||||
githubUrl: new URL("https://github.com"),
|
||||
onDidChangeConfiguration: jest.fn(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user