Skip to content

Commit 900712f

Browse files
Update and validate exercise test files (#2)
Co-authored-by: me <me@kentcdodds.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 93fd553 commit 900712f

File tree

44 files changed

+2952
-10279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2952
-10279
lines changed

exercises/01.advanced-tools/01.problem.annotations/src/index.test.ts

Lines changed: 120 additions & 682 deletions
Large diffs are not rendered by default.

exercises/01.advanced-tools/01.problem.annotations/src/video.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { userInfo } from 'node:os'
55
const subscribers = new Set<() => void>()
66

77
export async function listVideos() {
8-
const videos = await fs.readdir('./videos')
8+
const videos = await fs.readdir('./videos').catch(() => [])
99
return videos
1010
}
1111

0 commit comments

Comments
 (0)