-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(betterer 🏎): only check changed ts files (#739)
- Loading branch information
1 parent
26fdd4a
commit 0f8f44f
Showing
10 changed files
with
550 additions
and
3 deletions.
There are no files selected for viewing
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 +1,3 @@ | ||
export declare function tsquery(configFilePath: string, query: string): BettererFileTest; | ||
|
||
export declare function tsqueryΔ(query: string): BettererFileTest; |
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 +1,3 @@ | ||
export declare function typescript(configFilePath: string, extraCompilerOptions: ts.CompilerOptions): BettererFileTest; | ||
|
||
export declare function typescriptΔ(configFilePath: string, extraCompilerOptions?: ts.CompilerOptions): BettererFileTest; |
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 +1 @@ | ||
export { tsquery } from './tsquery'; | ||
export { tsquery, tsqueryΔ } from './tsquery'; |
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 +1 @@ | ||
export { typescript } from './typescript'; | ||
export { typescript, typescriptΔ } from './typescript'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`betterer.runner should ignore any files outside of the scope of the tsqueryΔ tsconfig 1`] = `"// BETTERER RESULTS V2."`; | ||
|
||
exports[`betterer.runner should ignore any files outside of the scope of the typescriptΔ test glob 1`] = `"// BETTERER RESULTS V2."`; | ||
|
||
exports[`betterer.runner should run tsqueryΔ against a file 1`] = ` | ||
"// BETTERER RESULTS V2. | ||
exports[\`tsquery no raw console.log\`] = { | ||
value: \`{ | ||
\\"src/index.ts:4087252068\\": [ | ||
[0, 0, 11, \\"TSQuery match\\", \\"3870399096\\"] | ||
] | ||
}\` | ||
}; | ||
" | ||
`; | ||
exports[`betterer.runner should run typescriptΔ against a file 1`] = ` | ||
"// BETTERER RESULTS V2. | ||
exports[\`use typescript\`] = { | ||
value: \`{ | ||
\\"src/index.ts:1499252024\\": [ | ||
[2, 12, 1, \\"The left-hand side of an arithmetic operation must be of type \\\\'any\\\\', \\\\'number\\\\', \\\\'bigint\\\\' or an enum type.\\", \\"177604\\"] | ||
] | ||
}\` | ||
}; | ||
" | ||
`; |
Oops, something went wrong.