-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efdc188
commit 6dd5c1b
Showing
25 changed files
with
4,630 additions
and
5,711 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
exports[`TS Compile > compiles a valid project 1`] = ` | ||
{ | ||
"logs": { | ||
"stdout": "Copied tsconfig.json\\nInstalling typescript@5.6.3...\\nDeleting dist...\\nDeleting tsconfig.tsbuildinfo...\\nCompiling...\\n> npx tsc --pretty\\ncompile finished." | ||
"stdout": "Copied tsconfig.json\\nInstalling typescript@5.7.2...\\nDeleting dist...\\nDeleting tsconfig.tsbuildinfo...\\nCompiling...\\n> npx tsc --pretty\\ncompile finished." | ||
}, | ||
"cwd": "packages/compile/test-files/pass-compile", | ||
"contentsDiff": { | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.6.3\\"\\n }\\n}\\n", | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.7.2\\"\\n }\\n}\\n", | ||
"dist": { | ||
"a.d.ts": "export type A = {\\n here: string;\\n there: number;\\n};\\nexport declare const value: A;\\n", | ||
"a.js": "export const value = {\\n here: 'yo',\\n there: 0,\\n};\\n" | ||
|
@@ -18,12 +18,12 @@ exports[`TS Compile > compiles a valid project 1`] = ` | |
exports[`TS Compile > rejects an invalid project 1`] = ` | ||
{ | ||
"logs": { | ||
"stdout": "Copied tsconfig.json\\nInstalling typescript@5.6.3...\\nDeleting dist...\\nDeleting tsconfig.tsbuildinfo...\\nCompiling...\\n> npx tsc --pretty\\nsrc/a.ts:12:5 - error TS2353: Object literal may only specify known properties, and 'no' does not exist in type 'A'.\\n\\n12 no: 'bad',\\n ~~\\n\\n\\nFound 1 error in src/a.ts:12\\n", | ||
"stdout": "Copied tsconfig.json\\nInstalling typescript@5.7.2...\\nDeleting dist...\\nDeleting tsconfig.tsbuildinfo...\\nCompiling...\\n> npx tsc --pretty\\nsrc/a.ts:12:5 - error TS2353: Object literal may only specify known properties, and 'no' does not exist in type 'A'.\\n\\n12 no: 'bad',\\n ~~\\n\\n\\nFound 1 error in src/a.ts:12\\n", | ||
"stderr": "compile failed." | ||
}, | ||
"cwd": "packages/compile/test-files/fail-compile", | ||
"contentsDiff": { | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.6.3\\"\\n }\\n}\\n", | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.7.2\\"\\n }\\n}\\n", | ||
"dist": { | ||
"a.d.ts": "export type A = {\\n here: string;\\n there: number;\\n};\\nexport declare const value: A;\\nexport declare const value2: A;\\n", | ||
"a.js": "export const value = {\\n here: 'yo',\\n there: 0,\\n};\\nexport const value2 = {\\n no: 'bad',\\n};\\n" | ||
|
@@ -39,11 +39,11 @@ exports[`TS Compile > rejects an invalid project 1`] = ` | |
exports[`TS Compile > works in a mono-repo 1`] = ` | ||
{ | ||
"logs": { | ||
"stdout": "Copied tsconfig.base.json\\nCopied tsconfig.json\\nCopied tsconfig.json\\nInstalling [email protected].4...\\n[packages/a] Deleting dist...\\n[packages/a] Deleting tsconfig.tsbuildinfo...\\n[packages/a] Compiling...\\n[packages/a] > npx tsc -b --pretty\\n[packages/b] Deleting dist...\\n[packages/b] Deleting tsconfig.tsbuildinfo...\\n[packages/b] Compiling...\\n[packages/b] > npx tsc -b --pretty\\n[packages/a] npx tsc -b --pretty exited with code 0\\n[packages/b] npx tsc -b --pretty exited with code 0\\ncompile finished." | ||
"stdout": "Copied tsconfig.base.json\\nCopied tsconfig.json\\nCopied tsconfig.json\\nInstalling [email protected].5...\\n[packages/a] Deleting dist...\\n[packages/a] Deleting tsconfig.tsbuildinfo...\\n[packages/a] Compiling...\\n[packages/a] > npx tsc -b --pretty\\n[packages/b] Deleting dist...\\n[packages/b] Deleting tsconfig.tsbuildinfo...\\n[packages/b] Compiling...\\n[packages/b] > npx tsc -b --pretty\\n[packages/a] npx tsc -b --pretty exited with code 0\\n[packages/b] npx tsc -b --pretty exited with code 0\\ncompile finished." | ||
}, | ||
"cwd": "packages/compile/test-files/mono-repo", | ||
"contentsDiff": { | ||
"package.json": "{\\n \\"private\\": true,\\n \\"workspaces\\": [\\n \\"packages/*\\"\\n ],\\n \\"devDependencies\\": {\\n \\"mono-vir\\": \\"^2.0.4\\"\\n }\\n}\\n", | ||
"package.json": "{\\n \\"private\\": true,\\n \\"workspaces\\": [\\n \\"packages/*\\"\\n ],\\n \\"devDependencies\\": {\\n \\"mono-vir\\": \\"^2.0.5\\"\\n }\\n}\\n", | ||
"packages": { | ||
"a": { | ||
"dist": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.