Skip to content
Open
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
6 changes: 4 additions & 2 deletions packages/theme/src/cli/utilities/theme-fs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ describe('theme-fs', () => {
// Given
const root = tmpDir
await copyDirectoryContents(joinPath(locationOfThisFile, 'fixtures/theme'), root)
const watchSpy = vi.spyOn(chokidar, 'watch')
const mockWatcher = new EventEmitter()
const watchSpy = vi.spyOn(chokidar, 'watch').mockReturnValue(mockWatcher as any)

// When
const themeFileSystem = mountThemeFileSystem(root, {listing: 'modern'})
Expand All @@ -157,7 +158,8 @@ describe('theme-fs', () => {
// Given
const root = tmpDir
await copyDirectoryContents(joinPath(locationOfThisFile, 'fixtures/theme'), root)
const watchSpy = vi.spyOn(chokidar, 'watch')
const mockWatcher = new EventEmitter()
const watchSpy = vi.spyOn(chokidar, 'watch').mockReturnValue(mockWatcher as any)

// When
const themeFileSystem = mountThemeFileSystem(root)
Expand Down
Loading