MCPcopy
hub / github.com/prettier/prettier / test

Function test

tests/integration/create-path-serializer.js:32–38  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

30 }
31
32 function test(value) {
33 return (
34 typeof value === "string" &&
35 (value.includes("\\") ||
36 replacements.some(({ find }) => value.includes(find)))
37 );
38 }
39
40 function print(value, serializer) {
41 return serializer(replace(value));

Callers 15

testResultFunction · 0.70
infer-parser.jsFile · 0.50
log-level.jsFile · 0.50
config-invalid.jsFile · 0.50
ignore-path.jsFile · 0.50
support-info.jsFile · 0.50
plugin-name.jsFile · 0.50
debug-print-ast.jsFile · 0.50
doc-printer.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…