You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my src/functions.ts, I have a class that starts like this:
/** * Represents a basic calculator with arithmetic operations. */exportclassCalculator{privateaccumulator: Big|"Infinity"|null=null;privatenextOperator: Operator|null=null;// State relating to the current input number:privatecurrentInputNumber: Big|null=null;privatedecimalButtonPressed: boolean=false;nextDecimalPlace: number|null=null;/** * Get the current value of the accumulator. * * @returns {Big | "Infinity" | null} The current accumulator value. * @example * ```ts @import.meta.vitest * const calc = new Calculator() * expect(calc.getAccumulator()).toBeNull() * xxx295 * ``` */publicgetAccumulator(): Big|"Infinity"|null{returnthis.accumulator;}
I'm expecting doc-vitest to fail because "xxx295" is not defined. From what I can tell so far, doc-vitest only runs against the doctests within top-level modules typescript function declarations.
The text was updated successfully, but these errors were encountered:
In my src/functions.ts, I have a class that starts like this:
I'm expecting doc-vitest to fail because "xxx295" is not defined. From what I can tell so far, doc-vitest only runs against the doctests within top-level modules typescript function declarations.
The text was updated successfully, but these errors were encountered: