MCPcopy
hub / github.com/prettier/prettier / func

Function func

tests/unit/get-parser-plugin-by-parser-name.js:38–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37 it("throws a ConfigError when no matching plugin is found", () => {
38 const func = () => getParserPluginByParserName(getMockPlugins("a"), "b");
39 expect(process.env.PRETTIER_TARGET).not.toBe("universal");
40 expect(func).toThrow(ConfigError);
41 expect(func).toThrow(`Couldn't resolve parser "b".`);

Callers

nothing calls this directly

Calls 2

getMockPluginsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…