Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jul 15, 2019
1 parent d880d31 commit 0d72f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions packages/jest-dev-server/src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ async function setupJestServer(providedConfig, index) {
async kill() {
console.log('')
console.log(
`Killing process listening to ${
config.port
}. On linux, this may require you to enter your password.`,
`Killing process listening to ${config.port}. On linux, this may require you to enter your password.`,
)
const [portProcess] = await findProcess('port', config.port)
logProcDetection(portProcess, config.port)
Expand All @@ -143,9 +141,7 @@ async function setupJestServer(providedConfig, index) {
prompts({
type: 'confirm',
name: 'kill',
message: `Another process is listening on ${
config.port
}. Should I kill it for you? On linux, this may require you to enter your password.`,
message: `Another process is listening on ${config.port}. Should I kill it for you? On linux, this may require you to enter your password.`,
initial: true,
}),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ class PuppeteerEnvironment extends NodeEnvironment {
this.global.context = await this.global.browser.browserContexts()[0]
} else {
throw new Error(
`browserContext should be either 'incognito' or 'default'. Received '${
config.browserContext
}'`,
`browserContext should be either 'incognito' or 'default'. Received '${config.browserContext}'`,
)
}
await this.global.jestPuppeteer.resetPage()
Expand Down

0 comments on commit 0d72f09

Please sign in to comment.