Skip to content

Commit bf989aa

Browse files
Final touches on the script.
1 parent 23af2a7 commit bf989aa

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ function main() {
2626
}
2727

2828
const tscPath = path.resolve(tscRoot, "built", "local", "tsc.js");
29-
const rwcTestPath = path.resolve(tscRoot, "tests", "cases", "rwc", "dt");
29+
const rwcTestPath = path.resolve(tscRoot, "internal", "cases", "rwc");
3030
const resolvedDefinitelyTypedRoot = path.resolve(definitelyTypedRoot);
3131

32-
console.log(`Resolved TypeScript Repo Root: '${tscRoot}'.`);
33-
console.log(`Resolved DefinitelyTyped Repo Root: '${definitelyTypedRoot}'.`);
32+
console.log(`Resolved TypeScript Compiler Path: '${tscPath}'.`);
33+
console.log(`Resolved TypeScript RWC Path: '${rwcTestPath}'.`);
34+
console.log(`Resolved DefinitelyTyped Repo Root: '${resolvedDefinitelyTypedRoot}'.`);
3435
importDefinitelyTypedTests(tscPath, rwcTestPath, resolvedDefinitelyTypedRoot);
3536
}
3637

@@ -42,7 +43,7 @@ function filePathEndsWith(path: string, endingString: string): boolean {
4243

4344
function copyFileSync(source: string, destination: string) {
4445
let text = fs.readFileSync(source);
45-
fs.writeFileSync(destination, text, {});
46+
fs.writeFileSync(destination, text);
4647
}
4748

4849
function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCaseName: string, testFiles: string[], responseFile: string ) {
@@ -108,7 +109,7 @@ function importDefinitelyTypedTests(tscPath: string, rwcTestPath: string, defini
108109

109110
subDirectories
110111
.filter(d => ["_infrastructure", "node_modules", ".git"].indexOf(d) < 0)
111-
.filter(i => i.indexOf("sipml") >=0 )
112+
// .filter(i => i.indexOf("sipml") >= 0 ) // Uncomment when you want to test :)
112113
.filter(i => fs.statSync(path.join(definitelyTypedRoot, i)).isDirectory())
113114
.forEach(d => {
114115
const directoryPath = path.join(definitelyTypedRoot, d);

0 commit comments

Comments
 (0)