Skip to content

Commit ae6a0f1

Browse files
committed
Update exercises and add .diffignore
1 parent 1cd17a4 commit ae6a0f1

File tree

32 files changed

+1
-65
lines changed

32 files changed

+1
-65
lines changed

epicshop/.diffignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.test.*

epicshop/post-set-playground.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,4 @@ for (const testFile of testFiles) {
3737
const dest = path.join(destDir, testFile)
3838

3939
fs.copyFileSync(src, dest)
40-
console.log(`✅ Copied ${testFile} from solution to playground`)
41-
}
42-
43-
if (testFiles.length > 0) {
44-
console.log(`\n📋 Copied ${testFiles.length} test file(s) to playground`)
4540
}

exercises/01.objects/01.problem.object-literals/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@
1313

1414
// console.log(`User: ${user.name}, Age: ${user.age}`)
1515
// console.log(`Admin: ${admin.name}, Age: ${admin.age}`)
16-
17-
export {}

exercises/01.objects/01.solution.object-literals/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ const admin: { name: string; age: number; email: string } = {
1515

1616
console.log(`User: ${user.name}, Age: ${user.age}`)
1717
console.log(`Admin: ${admin.name}, Age: ${admin.age}`)
18-
19-
export {}

exercises/01.objects/02.problem.property-access/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ const product = {
2222
// console.log(product.rating)
2323

2424
// console.log(formatProduct(product))
25-
26-
export {}

exercises/01.objects/02.solution.property-access/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ function formatProduct(p: { name: string; price: number }): string {
2121
// Property 'rating' does not exist on type '{ name: string; ... }'
2222

2323
console.log(formatProduct(product))
24-
25-
export {}

exercises/01.objects/03.problem.optional-properties/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@
2222
// console.log(`Email: ${user.email}`)
2323
// console.log(`Bio: ${user.bio ?? 'No bio provided'}`)
2424
// }
25-
26-
export {}

exercises/01.objects/03.solution.optional-properties/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ function displayUserInfo(user: {
2828

2929
displayUserInfo(alice)
3030
displayUserInfo(bob)
31-
32-
export {}

exercises/02.arrays/01.problem.array-basics/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@
1313
// 🐨 Log the total number of products
1414

1515
// console.log('Products:', products)
16-
17-
export {}

exercises/02.arrays/01.solution.array-basics/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ console.log('Last product:', products[products.length - 1])
1212
console.log('Total products:', products.length)
1313

1414
console.log('Products:', products)
15-
16-
export {}

0 commit comments

Comments
 (0)