Skip to content

Commit fc6c038

Browse files
committed
chore: fixed tests
1 parent 29dad6f commit fc6c038

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/runtime/src/helpers/compiler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const watchForMiddlewareChanges = (base: string) => {
110110
watcher,
111111
isReady: new Promise<void>((resolve) => {
112112
watcher.on('ready', async () => {
113-
console.log('Initial scan for middleware file complete. Ready for changes')
113+
console.log('Initial scan for middleware file complete. Ready for changes.')
114114
// This only happens on the first scan
115115
await updateWatchedFiles(watcher, base, true)
116116
console.log('Ready')

test/index.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ describe('the dev middleware watcher', () => {
20242024
watchers.push(watcher)
20252025
await isReady
20262026
expect(middlewareExists()).toBeFalsy()
2027-
expect(consoleLogSpy).toHaveBeenCalledWith('Initial scan complete. Ready for changes')
2027+
expect(consoleLogSpy).toHaveBeenCalledWith('Initial scan for middleware file complete. Ready for changes.')
20282028
consoleLogSpy.mockClear()
20292029
let isBuilt = nextBuild()
20302030
await writeFile(path.join(process.cwd(), 'middleware.ts'), middlewareSourceTs)

0 commit comments

Comments
 (0)