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
First off, thank you for your work on this 😄. I have everything seemingly working butI keep seeing errors pointing to the first line of the built file. For example, notice how the error points to the use strict of line 1.
I look at all the tickets and the closest was #19. I feel like I have something misconfigured but still stuck and hope someone can help. Thanks!
// test/utils/order.tsimporttestfrom'ava';import{formatOrderDate}from'../../src/utils/order';test('formatOrderDate > pretty prints the date',(t)=>{t.is(formatOrderDate(1586130298135),'April 5, 2220');});
// build-temp/tests/utils/order.js"use strict";var__importDefault=(this&&this.__importDefault)||function(mod){return(mod&&mod.__esModule) ? mod : {"default": mod};};Object.defineProperty(exports,"__esModule",{value: true});constava_1=__importDefault(require("ava"));constorder_1=require("../../src/utils/order");ava_1.default('formatOrderDate > pretty prints the date',(t)=>{t.is(order_1.formatOrderDate(1586130298135),'April 5, 2220');});//# sourceMappingURL=order.js.map
Could you try by following the instructions in #20?
I do think we should try and handle source maps better in AVA itself. Stack trace handling is being refactored at the moment and that should land before we can tackle this, but will follow-up.
(I'm closing this issue for housekeeping purposes, but let's keep the conversation going.)
To document incase others are having the same issue, this is related to nyc which others have reported istanbuljs/nyc#619. Removing nyc got source maps working
jonsadka
changed the title
Wrong line being shown for errors?
Source maps ignored and incorrect line shown when using nyc
Apr 18, 2020
Hi there,
First off, thank you for your work on this 😄. I have everything seemingly working butI keep seeing errors pointing to the first line of the built file. For example, notice how the error points to the
use strict
of line 1.I look at all the tickets and the closest was #19. I feel like I have something misconfigured but still stuck and hope someone can help. Thanks!
The text was updated successfully, but these errors were encountered: