-
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.
Merge pull request #84 from senkenn/fix/empty_sql_format_bug
Fix SQL formatting function in the case of empty sql content and test suite
- Loading branch information
Showing
12 changed files
with
697 additions
and
15 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
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,14 @@ | ||
{ | ||
"name": "@senken/vsce-test", | ||
"scripts": { | ||
"test:e2e": "tsc -p . && node ./out/runTest.js", | ||
"test:e2e": "tsc && node ./out/runTest.js", | ||
"test:e2e:bg": "xvfb-run -a pnpm test:e2e" | ||
}, | ||
"devDependencies": { | ||
"@types/vscode": "^1.90.0", | ||
"@vscode/test-electron": "^2.4.0" | ||
}, | ||
"jest": { | ||
"snapshotResolver": "<rootDir>/test/snapshotResolver.js" | ||
} | ||
} |
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,26 @@ | ||
module.exports = { | ||
/** | ||
* @param {string} testPath | ||
* @param {string} snapshotExtension | ||
*/ | ||
resolveSnapshotPath: (testPath, snapshotExtension) => | ||
testPath.replace(/\/out\//, "/test/").replace(/\.js/, ".ts") + | ||
snapshotExtension, | ||
|
||
/** | ||
* @param {string} snapshotFilePath | ||
* @param {string} snapshotExtension | ||
*/ | ||
resolveTestPath: (snapshotFilePath, snapshotExtension) => | ||
snapshotFilePath.slice(0, -snapshotExtension.length), | ||
|
||
// Example test path, used for preflight consistency check of the implementation above | ||
testPathForConsistencyCheck: "some/__tests__/example.test.ts", | ||
}; | ||
|
||
// Results in: | ||
// . | ||
// ├── test | ||
// │ ├── suite-ts | ||
// │ │ ├── extension.test.ts | ||
// │ │ ├── extension.test.ts.snap |
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.