Skip to content

Commit 655c317

Browse files
committed
test: ✅ give a better starting point
`it.todo('...')` confuses the learner
1 parent 3a54fc3 commit 655c317

File tree

13 files changed

+46
-16
lines changed

13 files changed

+46
-16
lines changed

apps/201-meal-planner-indirect-output-starter/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ describe(MealPlanner.name, () => {
2525
);
2626
});
2727

28-
it.todo('🚧 adds recipes to meal repository');
28+
it.todo('🚧 adds recipes to meal repository', async () => {
29+
throw new Error('🚧 Work in progress!');
30+
});
2931

3032
describe('recipes$', () => {
3133
it('emits empty array when no recipes', async () => {

apps/202-meal-planner-indirect-input-starter/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ describe(MealPlanner.name, () => {
3939
]);
4040
});
4141

42-
it.todo('🚧 fetches recipes from meal repository');
42+
it.todo('🚧 fetches recipes from meal repository', async () => {
43+
throw new Error('🚧 Work in progress!');
44+
});
4345

4446
describe('recipes$', () => {
4547
it('emits empty array when no recipes', async () => {

apps/203-meal-repository-starter/src/app/meal-planner/meal-repository.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ import { recipeMother } from '../testing/recipe.mother';
44
import { provideLocalStorageFake } from '../shared/local-storage.fake';
55

66
describe(MealRepository.name, () => {
7-
it.todo('🚧 adds recipes');
7+
it.todo('🚧 adds recipes', async () => {
8+
throw new Error('🚧 Work in progress!');
9+
});
810

9-
it.todo('🚧 returns empty array when storage is empty');
11+
it.todo('🚧 returns empty array when storage is empty', async () => {
12+
throw new Error('🚧 Work in progress!');
13+
});
1014

11-
it.todo('🚧 returns empty array when storage value is invalid');
15+
it.todo('🚧 returns empty array when storage value is invalid', async () => {
16+
throw new Error('🚧 Work in progress!');
17+
});
1218

1319
function createMealRepository() {
1420
const { getMealRepo, ...utils } = setUpMealRepository();

apps/301-recipe-search-isolated-starter/src/app/recipe/recipe-search.isolated.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
import { RecipeSearch } from './recipe-search.ng';
99

1010
describe(RecipeSearch.name, () => {
11-
it.todo('🚧 searches recipes without filtering');
11+
it.todo('🚧 searches recipes without filtering', async () => {
12+
throw new Error('🚧 Work in progress!');
13+
});
1214

1315
function createComponent() {
1416
TestBed.configureTestingModule({ providers: [RecipeSearch] });

apps/302-recipe-search-integration-test-bed-starter/src/app/recipe/recipe-search.integration.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
import { RecipeSearch } from './recipe-search.ng';
99

1010
describe(RecipeSearch.name, () => {
11-
it.todo('🚧 searches recipes without filtering');
11+
it.todo('🚧 searches recipes without filtering', async () => {
12+
throw new Error('🚧 Work in progress!');
13+
});
1214

1315
async function mountRecipeSearch() {
1416
const fixture = TestBed.createComponent(RecipeSearch);

apps/303-recipe-search-shallow-browser-mode-starter/src/app/recipe/recipe-search.shallow.browser.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import {
99
import { RecipeSearch } from './recipe-search.ng';
1010

1111
describe(RecipeSearch.name, () => {
12-
it.todo('🚧 searches recipes without filtering');
12+
it.todo('🚧 searches recipes without filtering', async () => {
13+
throw new Error('🚧 Work in progress!');
14+
});
1315

1416
async function mountRecipeSearch() {
1517
TestBed.configureTestingModule({

apps/303-recipe-search-shallow-test-bed-starter/src/app/recipe/recipe-search.shallow.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import {
77
import { RecipeSearch } from './recipe-search.ng';
88

99
describe(RecipeSearch.name, () => {
10-
it.todo('🚧 searches recipes without filtering');
10+
it.todo('🚧 searches recipes without filtering', async () => {
11+
throw new Error('🚧 Work in progress!');
12+
});
1113

1214
async function mountRecipeSearch() {
1315
TestBed.configureTestingModule({

apps/303-recipe-search-shallow-testing-library-starter/src/app/recipe/recipe-search.shallow.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
import { RecipeSearch } from './recipe-search.ng';
99

1010
describe(RecipeSearch.name, () => {
11-
it.todo('🚧 searches recipes without filtering');
11+
it.todo('🚧 searches recipes without filtering', async () => {
12+
throw new Error('🚧 Work in progress!');
13+
});
1214

1315
async function mountRecipeSearch() {
1416
const { fixture } = await render(RecipeSearch, {

apps/401-recipe-filter-starter/src/app/recipe/recipe-filter.browser.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { page } from 'vitest/browser';
55
import { RecipeFilter } from './recipe-filter.ng';
66

77
describe(RecipeFilter.name, () => {
8-
it.todo('🚧 triggers filterChange output');
8+
it.todo('🚧 triggers filterChange output', async () => {
9+
throw new Error('🚧 Work in progress!');
10+
});
911

1012
async function mountRecipeFilter() {
1113
const filterChangeSpy = vi.fn();

apps/401-recipe-filter-starter/src/app/recipe/recipe-filter.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { outputBinding } from '@angular/core';
22
import { render, screen } from '@testing-library/angular';
33
import userEvent from '@testing-library/user-event';
4-
import { createSpy } from '@whiskmate/testing/observe';
4+
import { createSpy } from '@whiskmate/testing/create-spy';
55
import { RecipeFilter } from './recipe-filter.ng';
66

77
describe(RecipeFilter.name, () => {
8-
it.todo('🚧 triggers filterChange output');
8+
it.todo('🚧 triggers filterChange output', async () => {
9+
throw new Error('🚧 Work in progress!');
10+
});
911

1012
async function mountRecipeFilter() {
1113
const filterChangeSpy = createSpy();

0 commit comments

Comments
 (0)