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
Copy file name to clipboardExpand all lines: src/harness/unittests/session.ts
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,17 @@ namespace ts.server {
53
53
returnnewTestSession(opts);
54
54
}
55
55
56
+
// Disable sourcemap support for the duration of the test, as sourcemapping the errors generated during this test is slow and not something we care to test
57
+
letoldPrepare: Function;
58
+
before(()=>{
59
+
oldPrepare=(Errorasany).prepareStackTrace;
60
+
delete(Errorasany).prepareStackTrace;
61
+
});
62
+
63
+
after(()=>{
64
+
(Errorasany).prepareStackTrace=oldPrepare;
65
+
});
66
+
56
67
beforeEach(()=>{
57
68
session=createSession();
58
69
session.send=(msg: protocol.Message)=>{
@@ -387,6 +398,18 @@ namespace ts.server {
387
398
});
388
399
389
400
describe("exceptions",()=>{
401
+
402
+
// Disable sourcemap support for the duration of the test, as sourcemapping the errors generated during this test is slow and not something we care to test
0 commit comments