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
Proposal
Capture the line number when test is invoked and either add it to the stack trace or add it above the diff, e.g. typescript/spec/something.spec.ts:7
Notes
Interestingly, the report is a bit different when the macro is inside vs outside the spec file. This can be seen on the root commit in the reproduction repository. Example diff with the + side representing a macro outside the spec file:
Number must be 5
-typescript/spec/something.spec.ts:4-3: const macro: Macro<[number]> = (t, number) => {-4: t.is(number, 5); -5: }
Difference:
﹣ 4
﹢ 5
-› macro (typescript/spec/something.spec.ts:4:7)+› macro (typescript/helper/macro.ts:4:7)