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
}

userTests/ts-toolbelt/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {I, T, Test} from "ts-toolbelt";
55
const {check, checks} = Test;
66

77
// iterates over `T` and returns the `Iteration` position when finished
8-
type StdRecursiveIteration<T extends any[], I extends I.Iteration = I.IterationOf<'0'>> = {
8+
type StdRecursiveIteration<T extends any[], I extends I.Iteration = I.IterationOf<0>> = {
99
0: StdRecursiveIteration<T, I.Next<I>>;
1010
1: I.Pos<I>;
1111
}[

userTests/ts-toolbelt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"author": "",
66
"license": "Apache-2.0",
7-
"repository": {
7+
"repository": {
88
"type": "git",
99
"url": "https://github.com/pirix-gh/ts-toolbelt"
1010
},

userTests/ts-toolbelt/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"compilerOptions": {
3-
"strict": true
3+
"strict": true,
4+
"types": [],
5+
"lib": ["es6"]
46
}
57
}

userTests/vue-next/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
npm install -g yarn lerna --force
1+
npm install -g pnpm
22
rm -rf vue-next
33
git clone --depth 1 https://github.com/vuejs/core
44

userTests/vue/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"author": "",
77
"license": "Apache-2.0",
88
"dependencies": {
9+
"@babel/types": "latest",
910
"vue": "latest"
1011
}
1112
}

userTests/vuex/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"author": "",
77
"license": "Apache-2.0",
88
"dependencies": {
9-
"vue": "^2.5.2",
9+
"@babel/types": "latest",
10+
"vue": "latest",
1011
"vuex": "latest"
1112
}
1213
}

userTests/webpack/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/webpack/webpack.git",
3+
"branch": "main",
34
"types": []
45
}

0 commit comments

Comments
 (0)