Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/dev_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,9 @@ export class DevServer {
.useColors(this.#colors)
.useRenderer(this.#logger.getRenderer())
.add(`Server address: ${this.#colors.cyan(`http://${host}:${message.port}`)}`)
.add(
`File system watcher: ${this.#colors.cyan(
`${this.#isWatching ? 'enabled' : 'disabled'}`
)}`
)

const watchMode = this.#options.hmr ? 'HMR' : this.#isWatching ? 'Legacy' : 'None'
displayMessage.add(`Watch Mode: ${this.#colors.cyan(watchMode)}`)

if (message.duration) {
displayMessage.add(`Ready in: ${this.#colors.cyan(prettyHrtime(message.duration))}`)
Expand Down
4 changes: 2 additions & 2 deletions tests/run.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.group('Child process', () => {
const childProcess = runNode(fs.basePath, {
script: 'foo.ts',
scriptArgs: ['--watch', '--foo=bar'],
nodeArgs: ['--throw-deprecation'],
nodeArgs: ['--conditions=dev'],
})

const payload = await pEvent(childProcess, 'message', { rejectionEvents: ['error'] })
Expand All @@ -74,7 +74,7 @@ test.group('Child process', () => {
process.allowedNodeEnvironmentFlags.has('--disable-warning')
? '--disable-warning=ExperimentalWarning'
: '--no-warnings',
'--throw-deprecation',
'--conditions=dev',
],
})
})
Expand Down