Skip to content

Commit ab98dcf

Browse files
authored
Merge pull request #10899 from Microsoft/two-small-gulp-fixes
Add stackTraceLimit; update harness/tsconfig.json
2 parents f00d3fc + 1946261 commit ab98dcf

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

Gulpfile.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Error.stackTraceLimit = 1000;
4343

4444
const cmdLineOptions = minimist(process.argv.slice(2), {
4545
boolean: ["debug", "light", "colors", "lint", "soft"],
46-
string: ["browser", "tests", "host", "reporter"],
46+
string: ["browser", "tests", "host", "reporter", "stackTraceLimit"],
4747
alias: {
4848
d: "debug",
4949
t: "tests",
@@ -561,6 +561,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
561561
const debug = cmdLineOptions["debug"];
562562
const tests = cmdLineOptions["tests"];
563563
const light = cmdLineOptions["light"];
564+
const stackTraceLimit = cmdLineOptions["stackTraceLimit"];
564565
const testConfigFile = "test.config";
565566
if (fs.existsSync(testConfigFile)) {
566567
fs.unlinkSync(testConfigFile);
@@ -580,7 +581,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
580581
}
581582

582583
if (tests || light || taskConfigsFolder) {
583-
writeTestConfigFile(tests, light, taskConfigsFolder, workerCount);
584+
writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit);
584585
}
585586

586587
if (tests && tests.toLocaleLowerCase() === "rwc") {
@@ -759,8 +760,8 @@ function cleanTestDirs(done: (e?: any) => void) {
759760
}
760761

761762
// used to pass data from jake command line directly to run.js
762-
function writeTestConfigFile(tests: string, light: boolean, taskConfigsFolder?: string, workerCount?: number) {
763-
const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, light: light, workerCount: workerCount, taskConfigsFolder: taskConfigsFolder });
763+
function writeTestConfigFile(tests: string, light: boolean, taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string) {
764+
const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, light, workerCount, stackTraceLimit, taskConfigsFolder });
764765
console.log("Running tests with config: " + testConfigContents);
765766
fs.writeFileSync("test.config", testConfigContents);
766767
}

src/harness/tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,25 @@
2222
"../compiler/utilities.ts",
2323
"../compiler/binder.ts",
2424
"../compiler/checker.ts",
25+
"../compiler/factory.ts",
26+
"../compiler/visitor.ts",
27+
"../compiler/transformers/ts.ts",
28+
"../compiler/transformers/jsx.ts",
29+
"../compiler/transformers/es7.ts",
30+
"../compiler/transformers/es6.ts",
31+
"../compiler/transformers/generators.ts",
32+
"../compiler/transformers/destructuring.ts",
33+
"../compiler/transformers/module/module.ts",
34+
"../compiler/transformers/module/system.ts",
35+
"../compiler/transformers/module/es6.ts",
36+
"../compiler/transformer.ts",
37+
"../compiler/comments.ts",
2538
"../compiler/sourcemap.ts",
2639
"../compiler/declarationEmitter.ts",
2740
"../compiler/emitter.ts",
2841
"../compiler/program.ts",
2942
"../compiler/commandLineParser.ts",
43+
"../compiler/tsc.ts",
3044
"../compiler/diagnosticInformationMap.generated.ts",
3145
"../services/breakpoints.ts",
3246
"../services/navigateTo.ts",

0 commit comments

Comments
 (0)