MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / optionalChaining.spec.ts

File optionalChaining.spec.ts

test/unit/optionalChaining.spec.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { notAllowedOptionalAssignment } from "../../src/transformation/utils/diagnostics";
2import * as util from "../util";
3
4test.each(["null", "undefined", '{ foo: "foo" }'])("optional chaining (%p)", value => {

Callers

nothing calls this directly

Calls 2

expectFunction · 0.85
getLuaResultMethod · 0.80

Tested by

no test coverage detected