How to use the disable function from debug

Find comprehensive JavaScript debug.disable code examples handpicked from public code repositorys.

134
135
136
137
138
139
140
141
142
143
  expect(mockedResponse.noPrompt).toBe(true);
  expect(mockedResponse.stubbed).toBe(true);
});

it("should pass through in non-quiet mode", async () => {
  debugInstance.disable("artifact-generator:*");

  const config = {
    _: ["generate"],
    inputResources: ["some_file.ttl"],
fork icon3
star icon8
watch icon12

+ 9 other calls in file

4
5
6
7
8
9
10
11
12
13
14


describe("Command line argument handling", () => {
  it("should default to logging all", () => {
    debugModule.enable("artifact-generator:*");
    configureLog({});
    const previouslyEnabled = debugModule.disable();
    configureLog({});
    expect(previouslyEnabled).toContain("artifact-generator:*");
  });

fork icon3
star icon7
watch icon0