Skip to content

Commit

Permalink
test(create-app): regenerate baselines with stubbed version
Browse files Browse the repository at this point in the history
  • Loading branch information
molisani committed Sep 30, 2024
1 parent 37b08be commit a3735c4
Show file tree
Hide file tree
Showing 25 changed files with 53 additions and 46 deletions.
11 changes: 9 additions & 2 deletions packages/create-app/tests/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface ApplicationTestOptions {
interface ApplicationTestResult {
readonly stdout: string;
readonly stderr: string;
readonly files: DirectoryJSON;
readonly files: DirectoryJSON<string | null>;
}

const FILE_ENTRY_PREFIX = "::::";
Expand Down Expand Up @@ -69,7 +69,14 @@ const ApplicationTestResultFormat: BaselineFormat<ApplicationTestResult> = {
for (const [path, text] of fileEntries) {
if (text) {
yield `${FILE_ENTRY_PREFIX}${path}`;
yield text.toString();
if (path.endsWith("package.json")) {
const obj = JSON.parse(text.toString());
const dependencies = Object.entries(obj.dependencies);
obj.dependencies = Object.fromEntries(dependencies.map(([key]) => [key, "<self>"]));
yield JSON.stringify(obj, void 0, 2);
} else {
yield text.toString();
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0"
"@stricli/core": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0"
"@stricli/core": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0"
"@stricli/core": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0"
"@stricli/core": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ dist
"minify": true
},
"dependencies": {
"@stricli/core": "^1.0.0",
"@stricli/auto-complete": "^1.0.0"
"@stricli/core": "<self>",
"@stricli/auto-complete": "<self>"
},
"devDependencies": {
"@types/node": "20.x",
Expand Down

0 comments on commit a3735c4

Please sign in to comment.