Skip to content

Commit aa0b8b0

Browse files
committed
Allow user tests to specify branch
Update users tests per microsoft/TypeScript#48128
1 parent aebd308 commit aa0b8b0

File tree

17 files changed

+23
-9
lines changed

17 files changed

+23
-9
lines changed

projectGraph.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe("getProjectsToBuild", () => {
66
expect(getProjectsToBuild("./test/simpleProject")).toEqual({
77
simpleProjects: [{
88
// TODO: Assertion only on the end of the path
9-
path: "/home/nathansa/src/TypeScriptErrorDeltas/test/simpleProject/tsconfig.json",
9+
path: "/home/nathansa/src/typescript-error-deltas/test/simpleProject/tsconfig.json",
1010
hasParseError: false,
1111
hasExtensionError: false,
1212
hasReferenceError: false,

userRepos.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as cp from "child_process";
66
interface UserConfig {
77
types: string[];
88
cloneUrl: string;
9+
branch?: string;
910
path?: string;
1011
}
1112

@@ -25,6 +26,7 @@ export function getUserTestsRepos(testDir: string): Repo[] {
2526
name: directory,
2627
url: config.cloneUrl,
2728
types: config.types,
29+
branch: config.branch,
2830
});
2931
}
3032
else if (fs.existsSync(path.join(testDir, directory, "package.json"))) {
@@ -60,4 +62,4 @@ async function execAsync(cwd: string, command: string): Promise<string> {
6062
return resolve(stdout);
6163
});
6264
});
63-
}
65+
}

userTests/create-react-app/test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"cloneUrl": "https://github.com/facebook/create-react-app.git",
3+
"branch": "main",
34
"types": []
45
}

userTests/discord.js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "",
77
"license": "Apache-2.0",
88
"dependencies": {
9-
"@types/node": "^8.0.47",
9+
"@types/node": "^17.0.21",
1010
"discord.js": "latest"
1111
}
1212
}

userTests/firebase/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import firebase = require("firebase");
1+
import firebase = require("firebase/app");

userTests/grunt/test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"cloneUrl": "https://github.com/gruntjs/grunt.git",
3+
"branch": "main",
34
"types": ["node"]
45
}

userTests/mqtt/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"author": "",
77
"license": "Apache-2.0",
88
"dependencies": {
9+
"@types/node": "latest",
10+
"@types/ws": "latest",
911
"mqtt": "latest"
1012
}
1113
}

userTests/npm/test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"cloneUrl": "https://github.com/npm/cli.git",
3+
"branch": "latest",
34
"types": ["node"]
45
}

userTests/puppeteer/test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"cloneUrl": "https://github.com/GoogleChrome/puppeteer.git",
3+
"branch": "main",
34
"types": []
45
}

userTests/soap/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"license": "Apache-2.0",
88
"dependencies": {
99
"@types/bluebird": "^3.5.17",
10+
"@types/sax": "latest",
1011
"soap": "latest"
1112
}
1213
}

0 commit comments

Comments
 (0)