MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / expectToHaveDiagnostics

Function expectToHaveDiagnostics

test/util.ts:357–363  ·  view source on GitHub ↗
(expected?: number[])

Source from the content-addressed store, hash-verified

355 }
356
357 public expectToHaveDiagnostics(expected?: number[]): this {
358 if (this.diagnosticsChecked) return this;
359 this.diagnosticsChecked = true;
360
361 expect(this.getLuaDiagnostics()).toHaveDiagnostics(expected);
362 return this;
363 }
364
365 public expectToHaveNoDiagnostics(): this {
366 if (this.diagnosticsChecked) return this;

Callers

nothing calls this directly

Calls 2

expectFunction · 0.85
toHaveDiagnosticsMethod · 0.80

Tested by

no test coverage detected