Skip to content

Commit

Permalink
Merge e6b0a8b into 6d66386
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtr committed May 21, 2018
2 parents 6d66386 + e6b0a8b commit 65639d5
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 53 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
"elegant-spinner": "^1.0.1",
"istanbul-lib-coverage": "^1.1.1",
"istanbul-lib-source-maps": "^1.1.0",
"jest-editor-support": "22.4.0",
"jest-editor-support": "23.0.0-charlie.2",
"jest-snapshot": "^22.1.2",
"jest-test-typescript-parser": "^22.1.3",
"micromatch": "^2.3.11"
Expand Down
7 changes: 5 additions & 2 deletions src/JestExt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { DecorationOptions } from './types'
import { hasDocument, isOpenInMultipleEditors } from './editor'
import { CoverageOverlay } from './Coverage/CoverageOverlay'
import { JestProcess, JestProcessManager } from './JestProcessManagement'
import { platform } from 'os'
import { isWatchNotSupported, WatchMode } from './Jest'

export class JestExt {
Expand Down Expand Up @@ -68,7 +69,8 @@ export class JestExt {
this.failingAssertionDecorators = {}
this.failDiagnostics = vscode.languages.createDiagnosticCollection('Jest')
this.clearOnNextInput = true
this.jestSettings = new Settings(workspace)
const useShell = platform() === 'win32'
this.jestSettings = new Settings(workspace, { shell: useShell })
this.pluginSettings = pluginSettings

this.coverageMapProvider = new CoverageMapProvider()
Expand Down Expand Up @@ -259,7 +261,8 @@ export class JestExt {
this.workspace.pathToJest = pathToJest(updatedSettings)
this.workspace.pathToConfig = pathToConfig(updatedSettings)

this.jestSettings = new Settings(this.workspace)
const useShell = platform() === 'win32'
this.jestSettings = new Settings(this.workspace, { shell: useShell })

this.coverageOverlay.enabled = updatedSettings.showCoverageOnLoad

Expand Down
2 changes: 1 addition & 1 deletion src/SnapshotCodeLens/SnapshotCodeLensProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function registerSnapshotCodeLens(enableSnapshotPreviews: boolean) {

class SnapshotCodeLensProvider implements vscode.CodeLensProvider {
public provideCodeLenses(document: vscode.TextDocument, _token: vscode.CancellationToken) {
const snapshots = new Snapshot()
const snapshots = new Snapshot(undefined)
return snapshots.getMetadata(document.uri.fsPath).map(snapshot => {
const { line } = snapshot.node.loc.start
const range = new vscode.Range(line - 1, 0, line - 1, 0)
Expand Down
4 changes: 2 additions & 2 deletions src/TestResults/TestResultProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TestReconciler, FormattedTestResults } from 'jest-editor-support'
import { TestReconciler, JestTotalResults } from 'jest-editor-support'
import { TestFileAssertionStatus } from 'jest-editor-support'
import { TestReconciliationState } from './TestReconciliationState'
import { TestResult } from './TestResult'
Expand Down Expand Up @@ -99,7 +99,7 @@ export class TestResultProvider {
return result
}

updateTestResults(data: FormattedTestResults): TestFileAssertionStatus[] {
updateTestResults(data: JestTotalResults): TestFileAssertionStatus[] {
this.resetCache()
return this.reconciler.updateFileWithJestStatus(data)
}
Expand Down
41 changes: 0 additions & 41 deletions typings/jest-editor-support.d.ts

This file was deleted.

47 changes: 41 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2260,19 +2260,28 @@ jest-diff@^22.4.3:
jest-get-type "^22.4.3"
pretty-format "^22.4.3"

jest-diff@^23.0.0-charlie.2:
version "23.0.0-charlie.2"
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.0.0-charlie.2.tgz#6321277332f4f28301b10acf02ea5e242e0387bd"
dependencies:
chalk "^2.0.1"
diff "^3.2.0"
jest-get-type "^22.1.0"
pretty-format "^23.0.0-charlie.2"

jest-docblock@^22.4.3:
version "22.4.3"
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-22.4.3.tgz#50886f132b42b280c903c592373bb6e93bb68b19"
dependencies:
detect-newline "^2.1.0"

jest-editor-support@22.4.0:
version "22.4.0"
resolved "https://registry.yarnpkg.com/jest-editor-support/-/jest-editor-support-22.4.0.tgz#1f6e2359dbf90f84c1a8a16b911db5ef4333b0a0"
jest-editor-support@23.0.0-charlie.2:
version "23.0.0-charlie.2"
resolved "https://registry.yarnpkg.com/jest-editor-support/-/jest-editor-support-23.0.0-charlie.2.tgz#741cdbc0b5de9f034cc2eec0aa34ab47c9f6f72d"
dependencies:
babel-traverse "^6.14.1"
babylon "^6.14.1"
jest-snapshot "^22.4.0"
jest-snapshot "^23.0.0-charlie.2"

jest-editor-support@^22.4.3:
version "22.4.3"
Expand Down Expand Up @@ -2301,7 +2310,7 @@ jest-get-type@^21.2.0:
version "21.2.0"
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-21.2.0.tgz#f6376ab9db4b60d81e39f30749c6c466f40d4a23"

jest-get-type@^22.4.3:
jest-get-type@^22.1.0, jest-get-type@^22.4.3:
version "22.4.3"
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4"

Expand Down Expand Up @@ -2347,6 +2356,14 @@ jest-matcher-utils@^22.4.3:
jest-get-type "^22.4.3"
pretty-format "^22.4.3"

jest-matcher-utils@^23.0.0-charlie.2:
version "23.0.0-charlie.2"
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.0.0-charlie.2.tgz#b564b9c02869dafd4b3f10343079ea92974a476a"
dependencies:
chalk "^2.0.1"
jest-get-type "^22.1.0"
pretty-format "^23.0.0-charlie.2"

jest-message-util@^22.4.3:
version "22.4.3"
resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-22.4.3.tgz#cf3d38aafe4befddbfc455e57d65d5239e399eb7"
Expand Down Expand Up @@ -2423,7 +2440,7 @@ jest-serializer@^22.4.3:
version "22.4.3"
resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-22.4.3.tgz#a679b81a7f111e4766235f4f0c46d230ee0f7436"

jest-snapshot@^22.1.2, jest-snapshot@^22.4.0, jest-snapshot@^22.4.3:
jest-snapshot@^22.1.2, jest-snapshot@^22.4.3:
version "22.4.3"
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-22.4.3.tgz#b5c9b42846ffb9faccb76b841315ba67887362d2"
dependencies:
Expand All @@ -2434,6 +2451,17 @@ jest-snapshot@^22.1.2, jest-snapshot@^22.4.0, jest-snapshot@^22.4.3:
natural-compare "^1.4.0"
pretty-format "^22.4.3"

jest-snapshot@^23.0.0-charlie.2:
version "23.0.0-charlie.2"
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.0.0-charlie.2.tgz#b56d5fa9cfde5df6a5a9b067c794ffdb2f1fe88a"
dependencies:
chalk "^2.0.1"
jest-diff "^23.0.0-charlie.2"
jest-matcher-utils "^23.0.0-charlie.2"
mkdirp "^0.5.1"
natural-compare "^1.4.0"
pretty-format "^23.0.0-charlie.2"

jest-test-typescript-parser@^22.1.3:
version "22.4.3"
resolved "https://registry.yarnpkg.com/jest-test-typescript-parser/-/jest-test-typescript-parser-22.4.3.tgz#805d6e203c1aea5811e7019d998fe1917f130930"
Expand Down Expand Up @@ -3472,6 +3500,13 @@ pretty-format@^22.4.3:
ansi-regex "^3.0.0"
ansi-styles "^3.2.0"

pretty-format@^23.0.0-charlie.2:
version "23.0.0-charlie.2"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.0.0-charlie.2.tgz#ab87c9fd8ff445bd2ace394c84000201a041f217"
dependencies:
ansi-regex "^3.0.0"
ansi-styles "^3.2.0"

private@^0.1.7:
version "0.1.8"
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
Expand Down

0 comments on commit 65639d5

Please sign in to comment.