Skip to content

Commit 45684a8

Browse files
authored
Disable sourcemaps during cancellationToken test (microsoft#19505)
1 parent 6671485 commit 45684a8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/harness/unittests/tsserverProjectSystem.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4454,6 +4454,17 @@ namespace ts.projectSystem {
44544454
});
44554455

44564456
describe("cancellationToken", () => {
4457+
// 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
4458+
let oldPrepare: Function;
4459+
before(() => {
4460+
oldPrepare = (Error as any).prepareStackTrace;
4461+
delete (Error as any).prepareStackTrace;
4462+
});
4463+
4464+
after(() => {
4465+
(Error as any).prepareStackTrace = oldPrepare;
4466+
});
4467+
44574468
it("is attached to request", () => {
44584469
const f1 = {
44594470
path: "/a/b/app.ts",

0 commit comments

Comments
 (0)