-
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
e5eb0c1
commit 70c2576
Showing
23 changed files
with
852 additions
and
820 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 [email protected].2...\\nDeleting dist...\\nDeleting tsconfig.tsbuildinfo...\\nCompiling...\\n> npx tsc --pretty\\ncompile finished." | ||
"stdout": "Copied tsconfig.json\\nInstalling [email protected].3...\\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.7.2\\"\\n }\\n}\\n", | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.7.3\\"\\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 [email protected].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", | ||
"stdout": "Copied tsconfig.json\\nInstalling [email protected].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", | ||
"stderr": "compile failed." | ||
}, | ||
"cwd": "packages/compile/test-files/fail-compile", | ||
"contentsDiff": { | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.7.2\\"\\n }\\n}\\n", | ||
"package.json": "{\\n \\"devDependencies\\": {\\n \\"typescript\\": \\"^5.7.3\\"\\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" | ||
|
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.