MCPcopy Create free account
hub / github.com/alangpierce/sucrase / assertTypeScriptESMResult

Function assertTypeScriptESMResult

test/typescript-test.ts:23–29  ·  view source on GitHub ↗
(
  code: string,
  expectedResult: string,
  options: Partial<Options> = {},
)

Source from the content-addressed store, hash-verified

21}
22
23function assertTypeScriptESMResult(
24 code: string,
25 expectedResult: string,
26 options: Partial<Options> = {},
27): void {
28 assertResult(code, expectedResult, {transforms: ["jsx", "typescript"], ...options});
29}
30
31function assertTypeScriptImportResult(
32 code: string,

Callers 2

typescript-test.tsFile · 0.85

Calls 1

assertResultFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…