Skip to content

Allow user tests to specify branch #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projectGraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("getProjectsToBuild", () => {
expect(getProjectsToBuild("./test/simpleProject")).toEqual({
simpleProjects: [{
// TODO: Assertion only on the end of the path
path: "/home/nathansa/src/TypeScriptErrorDeltas/test/simpleProject/tsconfig.json",
path: "/home/nathansa/src/typescript-error-deltas/test/simpleProject/tsconfig.json",
hasParseError: false,
hasExtensionError: false,
hasReferenceError: false,
Expand Down
4 changes: 3 additions & 1 deletion userRepos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as cp from "child_process";
interface UserConfig {
types: string[];
cloneUrl: string;
branch?: string;
path?: string;
}

Expand All @@ -25,6 +26,7 @@ export function getUserTestsRepos(testDir: string): Repo[] {
name: directory,
url: config.cloneUrl,
types: config.types,
branch: config.branch,
});
}
else if (fs.existsSync(path.join(testDir, directory, "package.json"))) {
Expand Down Expand Up @@ -60,4 +62,4 @@ async function execAsync(cwd: string, command: string): Promise<string> {
return resolve(stdout);
});
});
}
}
1 change: 1 addition & 0 deletions userTests/create-react-app/test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"cloneUrl": "https://github.com/facebook/create-react-app.git",
"branch": "main",
"types": []
}
2 changes: 1 addition & 1 deletion userTests/discord.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@types/node": "^8.0.47",
"@types/node": "^17.0.21",
"discord.js": "latest"
}
}
2 changes: 1 addition & 1 deletion userTests/firebase/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import firebase = require("firebase");
import firebase = require("firebase/app");
1 change: 1 addition & 0 deletions userTests/grunt/test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"cloneUrl": "https://github.com/gruntjs/grunt.git",
"branch": "main",
"types": ["node"]
}
2 changes: 2 additions & 0 deletions userTests/mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@types/node": "latest",
"@types/ws": "latest",
"mqtt": "latest"
}
}
1 change: 1 addition & 0 deletions userTests/npm/test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"cloneUrl": "https://github.com/npm/cli.git",
"branch": "latest",
"types": ["node"]
}
1 change: 1 addition & 0 deletions userTests/puppeteer/test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"cloneUrl": "https://github.com/GoogleChrome/puppeteer.git",
"branch": "main",
"types": []
}
1 change: 1 addition & 0 deletions userTests/soap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "Apache-2.0",
"dependencies": {
"@types/bluebird": "^3.5.17",
"@types/sax": "latest",
"soap": "latest"
}
}
2 changes: 1 addition & 1 deletion userTests/ts-toolbelt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {I, T, Test} from "ts-toolbelt";
const {check, checks} = Test;

// iterates over `T` and returns the `Iteration` position when finished
type StdRecursiveIteration<T extends any[], I extends I.Iteration = I.IterationOf<'0'>> = {
type StdRecursiveIteration<T extends any[], I extends I.Iteration = I.IterationOf<0>> = {
0: StdRecursiveIteration<T, I.Next<I>>;
1: I.Pos<I>;
}[
Expand Down
2 changes: 1 addition & 1 deletion userTests/ts-toolbelt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"author": "",
"license": "Apache-2.0",
"repository": {
"repository": {
"type": "git",
"url": "https://github.com/pirix-gh/ts-toolbelt"
},
Expand Down
4 changes: 3 additions & 1 deletion userTests/ts-toolbelt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"strict": true
"strict": true,
"types": [],
"lib": ["es6"]
}
}
2 changes: 1 addition & 1 deletion userTests/vue-next/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
npm install -g yarn lerna --force
npm install -g pnpm
rm -rf vue-next
git clone --depth 1 https://github.com/vuejs/core

Expand Down
1 change: 1 addition & 0 deletions userTests/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@babel/types": "latest",
"vue": "latest"
}
}
3 changes: 2 additions & 1 deletion userTests/vuex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"vue": "^2.5.2",
"@babel/types": "latest",
"vue": "latest",
"vuex": "latest"
}
}
1 change: 1 addition & 0 deletions userTests/webpack/test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"cloneUrl": "https://github.com/webpack/webpack.git",
"branch": "main",
"types": []
}