Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
connectdotz committed Aug 24, 2021
1 parent 978e4b7 commit 736d6a8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ Please add your own contribution below inside the Master section
## Master
* brief change description - @author
* show release message once per workspace - @connetdotz
-->

### 4.1.1
* show release message once per workspace - @connetdotz (#756)
### 4.1.0
* fix type warning in settings.json when using the `{"autoRun": "off"}` option - @tommy
* fix couple of test result matching issues - @connectdotz (#737)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-jest",
"displayName": "Jest",
"description": "Use Facebook's Jest With Pleasure.",
"version": "4.1.0",
"version": "4.1.1",
"publisher": "Orta",
"engines": {
"vscode": "^1.59.0"
Expand Down
4 changes: 2 additions & 2 deletions src/extensionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ export class ExtensionManager {
if (!didShow) {
vscode.window
.showInformationMessage(
`vscode-jest now supports the official vscode test explorer!!`,
`vscode-jest now supports the official vscode test explorer.`,
'Show Test Explorer',
'See Details'
)
.then((value) => {
if (value === 'Show Test Explorer') {
vscode.commands.executeCommand('workbench.view.testing.focus');
} else {
} else if (value === 'See Details') {
vscode.commands.executeCommand(
'vscode.open',
vscode.Uri.parse(
Expand Down
7 changes: 7 additions & 0 deletions tests/extensionManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,13 @@ describe('ExtensionManager', () => {
)
);
});
it('if close without selecting any action, should exit with no-op', async () => {
(vscode.window.showInformationMessage as jest.Mocked<any>).mockReturnValue(
Promise.resolve(undefined)
);
await extensionManager.activate();
expect(vscode.commands.executeCommand).not.toBeCalled();
});
it('will not show again once it has been seen', async () => {
(vscode.window.showInformationMessage as jest.Mocked<any>).mockReturnValue(
Promise.resolve('Show Test Explorer')
Expand Down

0 comments on commit 736d6a8

Please sign in to comment.