From 9a151be595734fa08db1d0af662aececf1738531 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 18 Oct 2023 10:35:53 +0200 Subject: [PATCH] fix(test): move all test apps --- apps/test/table/jest.config.ts | 21 -------- apps/test/todos-list/jest.config.ts | 21 -------- .../{test => testing}/checkbox/.eslintrc.json | 0 apps/{test => testing}/checkbox/README.md | 2 +- .../{test => testing}/checkbox/jest.config.ts | 4 +- .../harness => testing/checkbox}/project.json | 46 +++++++++--------- .../checkbox/src/app/app.component.spec.ts | 0 .../checkbox/src/app/app.component.ts | 0 .../checkbox/src/assets/.gitkeep | 0 .../checkbox/src/favicon.ico | Bin .../{test => testing}/checkbox/src/index.html | 0 apps/{test => testing}/checkbox/src/main.ts | 0 .../checkbox/src/styles.scss | 0 .../checkbox/src/test-setup.ts | 0 .../checkbox/tailwind.config.js | 0 .../checkbox/tsconfig.app.json | 0 .../checkbox/tsconfig.editor.json | 0 apps/{test => testing}/checkbox/tsconfig.json | 0 .../checkbox/tsconfig.spec.json | 0 .../create-harness/.eslintrc.json | 0 .../create-harness/README.md | 2 +- apps/testing/create-harness/jest.config.ts | 21 ++++++++ .../create-harness/project.json | 30 ++++++------ .../src/app/app.component.spec.ts | 0 .../create-harness/src/app/app.component.ts | 0 .../create-harness/src/app/app.config.ts | 0 .../src/app/slider.component.ts | 0 .../create-harness/src/app/slider.harness.ts | 0 .../create-harness/src/assets/.gitkeep | 0 .../create-harness/src/favicon.ico | Bin .../create-harness/src/index.html | 0 .../create-harness/src/main.ts | 0 .../create-harness/src/styles.scss | 0 .../create-harness/src/test-setup.ts | 0 .../create-harness/tailwind.config.js | 0 .../create-harness/tsconfig.app.json | 0 .../create-harness/tsconfig.editor.json | 0 .../create-harness/tsconfig.json | 0 .../create-harness/tsconfig.spec.json | 0 apps/{test => testing}/forms/.eslintrc.json | 0 apps/{test => testing}/forms/README.md | 12 ++--- .../{test => testing}/forms/cypress.config.ts | 0 .../forms/cypress/fixtures/example.json | 0 .../forms/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../forms/cypress/support/component.ts | 0 .../forms/cypress/tsconfig.json | 0 .../modal => testing/forms}/jest.config.ts | 2 +- .../nested => testing/forms}/project.json | 34 ++++++------- .../forms/src/app/app.component.spec.ts | 0 .../forms/src/app/app.component.ts | 0 .../forms/src/app/nx-welcome.component.ts | 0 .../forms/src/assets/.gitkeep | 0 apps/{test => testing}/forms/src/favicon.ico | Bin apps/{test => testing}/forms/src/index.html | 0 apps/{test => testing}/forms/src/main.ts | 0 apps/{test => testing}/forms/src/styles.scss | 0 .../{test => testing}/forms/src/test-setup.ts | 0 .../forms/tailwind.config.js | 0 .../{test => testing}/forms/tsconfig.app.json | 0 .../forms/tsconfig.editor.json | 0 apps/{test => testing}/forms/tsconfig.json | 0 .../forms/tsconfig.spec.json | 0 apps/{test => testing}/harness/.eslintrc.json | 0 apps/{test => testing}/harness/README.md | 2 +- apps/testing/harness/jest.config.ts | 21 ++++++++ .../checkbox => testing/harness}/project.json | 46 +++++++++--------- .../harness/src/app/app.component.ts | 0 .../harness/src/app/app.config.ts | 0 .../harness/src/app/child.component.spec.ts | 0 .../harness/src/app/child.component.ts | 0 .../harness/src/assets/.gitkeep | 0 .../{test => testing}/harness/src/favicon.ico | Bin apps/{test => testing}/harness/src/index.html | 0 apps/{test => testing}/harness/src/main.ts | 0 .../{test => testing}/harness/src/styles.scss | 0 .../harness/src/test-setup.ts | 0 .../harness/tailwind.config.js | 0 .../harness/tsconfig.app.json | 0 .../harness/tsconfig.editor.json | 0 apps/{test => testing}/harness/tsconfig.json | 0 .../harness/tsconfig.spec.json | 0 .../input-output/.eslintrc.json | 0 apps/{test => testing}/input-output/README.md | 2 +- .../input-output/cypress.config.ts | 0 .../cypress/fixtures/example.json | 0 .../input-output/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../input-output/cypress/support/component.ts | 0 .../input-output/cypress/tsconfig.json | 0 .../input-output}/jest.config.ts | 2 +- .../input-output/project.json | 34 ++++++------- .../input-output/src/app/app.component.ts | 0 .../src/app/counter.component.cy.ts | 0 .../src/app/counter.component.spec.ts | 0 .../input-output/src/app/counter.component.ts | 0 .../input-output/src/assets/.gitkeep | 0 .../input-output/src/favicon.ico | Bin .../input-output/src/index.html | 0 .../input-output/src/main.ts | 0 .../input-output/src/styles.scss | 0 .../input-output/src/test-setup.ts | 0 .../input-output/tsconfig.app.json | 0 .../input-output/tsconfig.editor.json | 0 .../input-output/tsconfig.json | 0 .../input-output/tsconfig.spec.json | 0 apps/{test => testing}/modal/.eslintrc.json | 0 apps/{test => testing}/modal/README.md | 2 +- .../{test => testing}/modal/cypress.config.ts | 0 .../modal/cypress/fixtures/example.json | 0 .../modal/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../modal/cypress/support/component.ts | 0 .../modal/cypress/tsconfig.json | 0 .../nested => testing/modal}/jest.config.ts | 2 +- apps/{test => testing}/modal/project.json | 34 ++++++------- .../modal/src/app/app.component.cy.ts | 0 .../modal/src/app/app.component.spec.ts | 0 .../modal/src/app/app.component.ts | 0 .../modal/src/app/app.config.ts | 0 .../modal/src/app/error.dialog.ts | 0 .../src/app/profil-confirmation.dialog.ts | 0 .../modal/src/assets/.gitkeep | 0 apps/{test => testing}/modal/src/favicon.ico | Bin apps/{test => testing}/modal/src/index.html | 0 apps/{test => testing}/modal/src/main.ts | 0 apps/{test => testing}/modal/src/styles.scss | 0 .../{test => testing}/modal/src/test-setup.ts | 0 .../modal/tailwind.config.js | 0 .../{test => testing}/modal/tsconfig.app.json | 0 .../modal/tsconfig.editor.json | 0 apps/{test => testing}/modal/tsconfig.json | 0 .../modal/tsconfig.spec.json | 0 apps/{test => testing}/nested/.eslintrc.json | 0 apps/{test => testing}/nested/README.md | 2 +- .../nested/cypress.config.ts | 0 .../nested/cypress/fixtures/example.json | 0 .../nested/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../nested/cypress/support/component.ts | 0 .../nested/cypress/tsconfig.json | 0 .../harness => testing/nested}/jest.config.ts | 2 +- .../forms => testing/nested}/project.json | 34 ++++++------- .../nested/src/app/app.component.ts | 0 .../nested/src/app/child.component.cy.ts | 0 .../nested/src/app/child.component.spec.ts | 0 .../nested/src/app/child.component.ts | 0 .../nested/src/app/http.service.ts | 0 .../nested/src/assets/.gitkeep | 0 apps/{test => testing}/nested/src/favicon.ico | Bin apps/{test => testing}/nested/src/index.html | 0 apps/{test => testing}/nested/src/main.ts | 0 apps/{test => testing}/nested/src/styles.scss | 0 .../nested/src/test-setup.ts | 0 .../nested/tsconfig.app.json | 0 .../nested/tsconfig.editor.json | 0 apps/{test => testing}/nested/tsconfig.json | 0 .../nested/tsconfig.spec.json | 0 .../router-outlet/.eslintrc.json | 0 .../{test => testing}/router-outlet/README.md | 2 +- .../router-outlet/cypress.config.ts | 0 .../cypress/fixtures/example.json | 0 .../router-outlet/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../cypress/support/component.ts | 0 .../router-outlet/cypress/tsconfig.json | 0 .../router-outlet/jest.config.ts | 2 +- .../router-outlet/project.json | 34 ++++++------- .../router-outlet/src/app/app.component.cy.ts | 0 .../src/app/app.component.spec.ts | 0 .../router-outlet/src/app/app.component.ts | 0 .../router-outlet/src/app/app.config.ts | 0 .../router-outlet/src/app/app.routes.ts | 0 .../router-outlet/src/app/book.guard.ts | 0 .../router-outlet/src/app/book.model.ts | 0 .../src/app/no-book-search.component.ts | 0 .../router-outlet/src/app/search.component.ts | 0 .../router-outlet/src/app/shelf.component.ts | 0 .../router-outlet/src/assets/.gitkeep | 0 .../router-outlet/src/favicon.ico | Bin .../router-outlet/src/index.html | 0 .../router-outlet/src/main.ts | 0 .../router-outlet/src/styles.scss | 0 .../router-outlet/src/test-setup.ts | 0 .../router-outlet/tsconfig.app.json | 0 .../router-outlet/tsconfig.editor.json | 0 .../router-outlet/tsconfig.json | 0 .../router-outlet/tsconfig.spec.json | 0 apps/{test => testing}/table/.eslintrc.json | 0 apps/{test => testing}/table/README.md | 12 ++--- .../{test => testing}/table/cypress.config.ts | 0 .../table/cypress/fixtures/example.json | 0 .../table/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../table/cypress/support/component.ts | 0 .../table/cypress/tsconfig.json | 0 .../forms => testing/table}/jest.config.ts | 2 +- apps/{test => testing}/table/project.json | 34 ++++++------- .../table/src/app/app.component.ts | 0 .../table/src/app/table.component.spec.ts | 0 .../table/src/app/table.component.ts | 0 .../table/src/assets/.gitkeep | 0 apps/{test => testing}/table/src/favicon.ico | Bin apps/{test => testing}/table/src/index.html | 0 apps/{test => testing}/table/src/main.ts | 0 apps/{test => testing}/table/src/styles.scss | 0 .../{test => testing}/table/src/test-setup.ts | 0 .../table/tailwind.config.js | 0 .../{test => testing}/table/tsconfig.app.json | 0 .../table/tsconfig.editor.json | 0 apps/{test => testing}/table/tsconfig.json | 0 .../table/tsconfig.spec.json | 0 .../todos-list/.eslintrc.json | 0 apps/{test => testing}/todos-list/README.md | 2 +- .../todos-list/cypress.config.ts | 0 .../todos-list/cypress/fixtures/example.json | 0 .../todos-list/cypress/support/commands.ts | 0 .../cypress/support/component-index.html | 0 .../todos-list/cypress/support/component.ts | 0 .../todos-list/cypress/tsconfig.json | 0 .../todos-list}/jest.config.ts | 2 +- .../{test => testing}/todos-list/project.json | 34 ++++++------- .../todos-list/src/app/app.component.ts | 0 .../todos-list/src/app/app.config.ts | 0 .../todos-list/src/app/app.route.ts | 0 .../todos-list/src/app/backend.service.ts | 0 .../src/app/detail/detail.component.ts | 0 .../todos-list/src/app/detail/detail.store.ts | 0 .../src/app/list/list.component.spec.ts | 0 .../todos-list/src/app/list/list.component.ts | 0 .../src/app/list/ticket.store.spec.ts | 0 .../todos-list/src/app/list/ticket.store.ts | 0 .../src/app/list/ui/add.component.ts | 0 .../src/app/list/ui/row.component.spec.ts | 0 .../src/app/list/ui/row.component.ts | 0 .../todos-list/src/assets/.gitkeep | 0 .../todos-list/src/favicon.ico | Bin .../todos-list/src/index.html | 0 apps/{test => testing}/todos-list/src/main.ts | 0 .../todos-list/src/styles.scss | 0 .../todos-list/src/test-setup.ts | 0 .../todos-list/tailwind.config.js | 0 .../todos-list/tsconfig.app.json | 0 .../todos-list/tsconfig.editor.json | 0 .../todos-list/tsconfig.json | 0 .../todos-list/tsconfig.spec.json | 0 .../docs/challenges/testing/17-router.md | 6 +-- .../docs/challenges/testing/18-nested-comp.md | 8 +-- .../challenges/testing/19-input-output.md | 8 +-- .../docs/challenges/testing/20-modal.md | 8 +-- .../docs/challenges/testing/23-harness.md | 2 +- .../challenges/testing/24-harness-creation.md | 2 +- .../docs/challenges/testing/28-checkbox.md | 2 +- .../challenges/testing/29-real-application.md | 8 +-- 254 files changed, 273 insertions(+), 273 deletions(-) delete mode 100644 apps/test/table/jest.config.ts delete mode 100644 apps/test/todos-list/jest.config.ts rename apps/{test => testing}/checkbox/.eslintrc.json (100%) rename apps/{test => testing}/checkbox/README.md (87%) rename apps/{test => testing}/checkbox/jest.config.ts (85%) rename apps/{test/harness => testing/checkbox}/project.json (70%) rename apps/{test => testing}/checkbox/src/app/app.component.spec.ts (100%) rename apps/{test => testing}/checkbox/src/app/app.component.ts (100%) rename apps/{test => testing}/checkbox/src/assets/.gitkeep (100%) rename apps/{test => testing}/checkbox/src/favicon.ico (100%) rename apps/{test => testing}/checkbox/src/index.html (100%) rename apps/{test => testing}/checkbox/src/main.ts (100%) rename apps/{test => testing}/checkbox/src/styles.scss (100%) rename apps/{test => testing}/checkbox/src/test-setup.ts (100%) rename apps/{test => testing}/checkbox/tailwind.config.js (100%) rename apps/{test => testing}/checkbox/tsconfig.app.json (100%) rename apps/{test => testing}/checkbox/tsconfig.editor.json (100%) rename apps/{test => testing}/checkbox/tsconfig.json (100%) rename apps/{test => testing}/checkbox/tsconfig.spec.json (100%) rename apps/{test => testing}/create-harness/.eslintrc.json (100%) rename apps/{test => testing}/create-harness/README.md (86%) create mode 100644 apps/testing/create-harness/jest.config.ts rename apps/{test => testing}/create-harness/project.json (68%) rename apps/{test => testing}/create-harness/src/app/app.component.spec.ts (100%) rename apps/{test => testing}/create-harness/src/app/app.component.ts (100%) rename apps/{test => testing}/create-harness/src/app/app.config.ts (100%) rename apps/{test => testing}/create-harness/src/app/slider.component.ts (100%) rename apps/{test => testing}/create-harness/src/app/slider.harness.ts (100%) rename apps/{test => testing}/create-harness/src/assets/.gitkeep (100%) rename apps/{test => testing}/create-harness/src/favicon.ico (100%) rename apps/{test => testing}/create-harness/src/index.html (100%) rename apps/{test => testing}/create-harness/src/main.ts (100%) rename apps/{test => testing}/create-harness/src/styles.scss (100%) rename apps/{test => testing}/create-harness/src/test-setup.ts (100%) rename apps/{test => testing}/create-harness/tailwind.config.js (100%) rename apps/{test => testing}/create-harness/tsconfig.app.json (100%) rename apps/{test => testing}/create-harness/tsconfig.editor.json (100%) rename apps/{test => testing}/create-harness/tsconfig.json (100%) rename apps/{test => testing}/create-harness/tsconfig.spec.json (100%) rename apps/{test => testing}/forms/.eslintrc.json (100%) rename apps/{test => testing}/forms/README.md (69%) rename apps/{test => testing}/forms/cypress.config.ts (100%) rename apps/{test => testing}/forms/cypress/fixtures/example.json (100%) rename apps/{test => testing}/forms/cypress/support/commands.ts (100%) rename apps/{test => testing}/forms/cypress/support/component-index.html (100%) rename apps/{test => testing}/forms/cypress/support/component.ts (100%) rename apps/{test => testing}/forms/cypress/tsconfig.json (100%) rename apps/{test/modal => testing/forms}/jest.config.ts (95%) rename apps/{test/nested => testing/forms}/project.json (71%) rename apps/{test => testing}/forms/src/app/app.component.spec.ts (100%) rename apps/{test => testing}/forms/src/app/app.component.ts (100%) rename apps/{test => testing}/forms/src/app/nx-welcome.component.ts (100%) rename apps/{test => testing}/forms/src/assets/.gitkeep (100%) rename apps/{test => testing}/forms/src/favicon.ico (100%) rename apps/{test => testing}/forms/src/index.html (100%) rename apps/{test => testing}/forms/src/main.ts (100%) rename apps/{test => testing}/forms/src/styles.scss (100%) rename apps/{test => testing}/forms/src/test-setup.ts (100%) rename apps/{test => testing}/forms/tailwind.config.js (100%) rename apps/{test => testing}/forms/tsconfig.app.json (100%) rename apps/{test => testing}/forms/tsconfig.editor.json (100%) rename apps/{test => testing}/forms/tsconfig.json (100%) rename apps/{test => testing}/forms/tsconfig.spec.json (100%) rename apps/{test => testing}/harness/.eslintrc.json (100%) rename apps/{test => testing}/harness/README.md (87%) create mode 100644 apps/testing/harness/jest.config.ts rename apps/{test/checkbox => testing/harness}/project.json (71%) rename apps/{test => testing}/harness/src/app/app.component.ts (100%) rename apps/{test => testing}/harness/src/app/app.config.ts (100%) rename apps/{test => testing}/harness/src/app/child.component.spec.ts (100%) rename apps/{test => testing}/harness/src/app/child.component.ts (100%) rename apps/{test => testing}/harness/src/assets/.gitkeep (100%) rename apps/{test => testing}/harness/src/favicon.ico (100%) rename apps/{test => testing}/harness/src/index.html (100%) rename apps/{test => testing}/harness/src/main.ts (100%) rename apps/{test => testing}/harness/src/styles.scss (100%) rename apps/{test => testing}/harness/src/test-setup.ts (100%) rename apps/{test => testing}/harness/tailwind.config.js (100%) rename apps/{test => testing}/harness/tsconfig.app.json (100%) rename apps/{test => testing}/harness/tsconfig.editor.json (100%) rename apps/{test => testing}/harness/tsconfig.json (100%) rename apps/{test => testing}/harness/tsconfig.spec.json (100%) rename apps/{test => testing}/input-output/.eslintrc.json (100%) rename apps/{test => testing}/input-output/README.md (86%) rename apps/{test => testing}/input-output/cypress.config.ts (100%) rename apps/{test => testing}/input-output/cypress/fixtures/example.json (100%) rename apps/{test => testing}/input-output/cypress/support/commands.ts (100%) rename apps/{test => testing}/input-output/cypress/support/component-index.html (100%) rename apps/{test => testing}/input-output/cypress/support/component.ts (100%) rename apps/{test => testing}/input-output/cypress/tsconfig.json (100%) rename apps/{test/create-harness => testing/input-output}/jest.config.ts (93%) rename apps/{test => testing}/input-output/project.json (68%) rename apps/{test => testing}/input-output/src/app/app.component.ts (100%) rename apps/{test => testing}/input-output/src/app/counter.component.cy.ts (100%) rename apps/{test => testing}/input-output/src/app/counter.component.spec.ts (100%) rename apps/{test => testing}/input-output/src/app/counter.component.ts (100%) rename apps/{test => testing}/input-output/src/assets/.gitkeep (100%) rename apps/{test => testing}/input-output/src/favicon.ico (100%) rename apps/{test => testing}/input-output/src/index.html (100%) rename apps/{test => testing}/input-output/src/main.ts (100%) rename apps/{test => testing}/input-output/src/styles.scss (100%) rename apps/{test => testing}/input-output/src/test-setup.ts (100%) rename apps/{test => testing}/input-output/tsconfig.app.json (100%) rename apps/{test => testing}/input-output/tsconfig.editor.json (100%) rename apps/{test => testing}/input-output/tsconfig.json (100%) rename apps/{test => testing}/input-output/tsconfig.spec.json (100%) rename apps/{test => testing}/modal/.eslintrc.json (100%) rename apps/{test => testing}/modal/README.md (88%) rename apps/{test => testing}/modal/cypress.config.ts (100%) rename apps/{test => testing}/modal/cypress/fixtures/example.json (100%) rename apps/{test => testing}/modal/cypress/support/commands.ts (100%) rename apps/{test => testing}/modal/cypress/support/component-index.html (100%) rename apps/{test => testing}/modal/cypress/support/component.ts (100%) rename apps/{test => testing}/modal/cypress/tsconfig.json (100%) rename apps/{test/nested => testing/modal}/jest.config.ts (95%) rename apps/{test => testing}/modal/project.json (72%) rename apps/{test => testing}/modal/src/app/app.component.cy.ts (100%) rename apps/{test => testing}/modal/src/app/app.component.spec.ts (100%) rename apps/{test => testing}/modal/src/app/app.component.ts (100%) rename apps/{test => testing}/modal/src/app/app.config.ts (100%) rename apps/{test => testing}/modal/src/app/error.dialog.ts (100%) rename apps/{test => testing}/modal/src/app/profil-confirmation.dialog.ts (100%) rename apps/{test => testing}/modal/src/assets/.gitkeep (100%) rename apps/{test => testing}/modal/src/favicon.ico (100%) rename apps/{test => testing}/modal/src/index.html (100%) rename apps/{test => testing}/modal/src/main.ts (100%) rename apps/{test => testing}/modal/src/styles.scss (100%) rename apps/{test => testing}/modal/src/test-setup.ts (100%) rename apps/{test => testing}/modal/tailwind.config.js (100%) rename apps/{test => testing}/modal/tsconfig.app.json (100%) rename apps/{test => testing}/modal/tsconfig.editor.json (100%) rename apps/{test => testing}/modal/tsconfig.json (100%) rename apps/{test => testing}/modal/tsconfig.spec.json (100%) rename apps/{test => testing}/nested/.eslintrc.json (100%) rename apps/{test => testing}/nested/README.md (88%) rename apps/{test => testing}/nested/cypress.config.ts (100%) rename apps/{test => testing}/nested/cypress/fixtures/example.json (100%) rename apps/{test => testing}/nested/cypress/support/commands.ts (100%) rename apps/{test => testing}/nested/cypress/support/component-index.html (100%) rename apps/{test => testing}/nested/cypress/support/component.ts (100%) rename apps/{test => testing}/nested/cypress/tsconfig.json (100%) rename apps/{test/harness => testing/nested}/jest.config.ts (94%) rename apps/{test/forms => testing/nested}/project.json (70%) rename apps/{test => testing}/nested/src/app/app.component.ts (100%) rename apps/{test => testing}/nested/src/app/child.component.cy.ts (100%) rename apps/{test => testing}/nested/src/app/child.component.spec.ts (100%) rename apps/{test => testing}/nested/src/app/child.component.ts (100%) rename apps/{test => testing}/nested/src/app/http.service.ts (100%) rename apps/{test => testing}/nested/src/assets/.gitkeep (100%) rename apps/{test => testing}/nested/src/favicon.ico (100%) rename apps/{test => testing}/nested/src/index.html (100%) rename apps/{test => testing}/nested/src/main.ts (100%) rename apps/{test => testing}/nested/src/styles.scss (100%) rename apps/{test => testing}/nested/src/test-setup.ts (100%) rename apps/{test => testing}/nested/tsconfig.app.json (100%) rename apps/{test => testing}/nested/tsconfig.editor.json (100%) rename apps/{test => testing}/nested/tsconfig.json (100%) rename apps/{test => testing}/nested/tsconfig.spec.json (100%) rename apps/{test => testing}/router-outlet/.eslintrc.json (100%) rename apps/{test => testing}/router-outlet/README.md (85%) rename apps/{test => testing}/router-outlet/cypress.config.ts (100%) rename apps/{test => testing}/router-outlet/cypress/fixtures/example.json (100%) rename apps/{test => testing}/router-outlet/cypress/support/commands.ts (100%) rename apps/{test => testing}/router-outlet/cypress/support/component-index.html (100%) rename apps/{test => testing}/router-outlet/cypress/support/component.ts (100%) rename apps/{test => testing}/router-outlet/cypress/tsconfig.json (100%) rename apps/{test => testing}/router-outlet/jest.config.ts (93%) rename apps/{test => testing}/router-outlet/project.json (66%) rename apps/{test => testing}/router-outlet/src/app/app.component.cy.ts (100%) rename apps/{test => testing}/router-outlet/src/app/app.component.spec.ts (100%) rename apps/{test => testing}/router-outlet/src/app/app.component.ts (100%) rename apps/{test => testing}/router-outlet/src/app/app.config.ts (100%) rename apps/{test => testing}/router-outlet/src/app/app.routes.ts (100%) rename apps/{test => testing}/router-outlet/src/app/book.guard.ts (100%) rename apps/{test => testing}/router-outlet/src/app/book.model.ts (100%) rename apps/{test => testing}/router-outlet/src/app/no-book-search.component.ts (100%) rename apps/{test => testing}/router-outlet/src/app/search.component.ts (100%) rename apps/{test => testing}/router-outlet/src/app/shelf.component.ts (100%) rename apps/{test => testing}/router-outlet/src/assets/.gitkeep (100%) rename apps/{test => testing}/router-outlet/src/favicon.ico (100%) rename apps/{test => testing}/router-outlet/src/index.html (100%) rename apps/{test => testing}/router-outlet/src/main.ts (100%) rename apps/{test => testing}/router-outlet/src/styles.scss (100%) rename apps/{test => testing}/router-outlet/src/test-setup.ts (100%) rename apps/{test => testing}/router-outlet/tsconfig.app.json (100%) rename apps/{test => testing}/router-outlet/tsconfig.editor.json (100%) rename apps/{test => testing}/router-outlet/tsconfig.json (100%) rename apps/{test => testing}/router-outlet/tsconfig.spec.json (100%) rename apps/{test => testing}/table/.eslintrc.json (100%) rename apps/{test => testing}/table/README.md (70%) rename apps/{test => testing}/table/cypress.config.ts (100%) rename apps/{test => testing}/table/cypress/fixtures/example.json (100%) rename apps/{test => testing}/table/cypress/support/commands.ts (100%) rename apps/{test => testing}/table/cypress/support/component-index.html (100%) rename apps/{test => testing}/table/cypress/support/component.ts (100%) rename apps/{test => testing}/table/cypress/tsconfig.json (100%) rename apps/{test/forms => testing/table}/jest.config.ts (95%) rename apps/{test => testing}/table/project.json (71%) rename apps/{test => testing}/table/src/app/app.component.ts (100%) rename apps/{test => testing}/table/src/app/table.component.spec.ts (100%) rename apps/{test => testing}/table/src/app/table.component.ts (100%) rename apps/{test => testing}/table/src/assets/.gitkeep (100%) rename apps/{test => testing}/table/src/favicon.ico (100%) rename apps/{test => testing}/table/src/index.html (100%) rename apps/{test => testing}/table/src/main.ts (100%) rename apps/{test => testing}/table/src/styles.scss (100%) rename apps/{test => testing}/table/src/test-setup.ts (100%) rename apps/{test => testing}/table/tailwind.config.js (100%) rename apps/{test => testing}/table/tsconfig.app.json (100%) rename apps/{test => testing}/table/tsconfig.editor.json (100%) rename apps/{test => testing}/table/tsconfig.json (100%) rename apps/{test => testing}/table/tsconfig.spec.json (100%) rename apps/{test => testing}/todos-list/.eslintrc.json (100%) rename apps/{test => testing}/todos-list/README.md (87%) rename apps/{test => testing}/todos-list/cypress.config.ts (100%) rename apps/{test => testing}/todos-list/cypress/fixtures/example.json (100%) rename apps/{test => testing}/todos-list/cypress/support/commands.ts (100%) rename apps/{test => testing}/todos-list/cypress/support/component-index.html (100%) rename apps/{test => testing}/todos-list/cypress/support/component.ts (100%) rename apps/{test => testing}/todos-list/cypress/tsconfig.json (100%) rename apps/{test/input-output => testing/todos-list}/jest.config.ts (94%) rename apps/{test => testing}/todos-list/project.json (70%) rename apps/{test => testing}/todos-list/src/app/app.component.ts (100%) rename apps/{test => testing}/todos-list/src/app/app.config.ts (100%) rename apps/{test => testing}/todos-list/src/app/app.route.ts (100%) rename apps/{test => testing}/todos-list/src/app/backend.service.ts (100%) rename apps/{test => testing}/todos-list/src/app/detail/detail.component.ts (100%) rename apps/{test => testing}/todos-list/src/app/detail/detail.store.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/list.component.spec.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/list.component.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/ticket.store.spec.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/ticket.store.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/ui/add.component.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/ui/row.component.spec.ts (100%) rename apps/{test => testing}/todos-list/src/app/list/ui/row.component.ts (100%) rename apps/{test => testing}/todos-list/src/assets/.gitkeep (100%) rename apps/{test => testing}/todos-list/src/favicon.ico (100%) rename apps/{test => testing}/todos-list/src/index.html (100%) rename apps/{test => testing}/todos-list/src/main.ts (100%) rename apps/{test => testing}/todos-list/src/styles.scss (100%) rename apps/{test => testing}/todos-list/src/test-setup.ts (100%) rename apps/{test => testing}/todos-list/tailwind.config.js (100%) rename apps/{test => testing}/todos-list/tsconfig.app.json (100%) rename apps/{test => testing}/todos-list/tsconfig.editor.json (100%) rename apps/{test => testing}/todos-list/tsconfig.json (100%) rename apps/{test => testing}/todos-list/tsconfig.spec.json (100%) diff --git a/apps/test/table/jest.config.ts b/apps/test/table/jest.config.ts deleted file mode 100644 index b0a0ac3..0000000 --- a/apps/test/table/jest.config.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'test-table', - preset: '../../../jest.preset.js', - setupFilesAfterEnv: ['/src/test-setup.ts'], - transform: { - '^.+\\.(ts|mjs|js|html)$': [ - 'jest-preset-angular', - { - tsconfig: '/tsconfig.spec.json', - stringifyContentPathRegex: '\\.(html|svg)$', - }, - ], - }, - transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], - snapshotSerializers: [ - 'jest-preset-angular/build/serializers/no-ng-attributes', - 'jest-preset-angular/build/serializers/ng-snapshot', - 'jest-preset-angular/build/serializers/html-comment', - ], -}; diff --git a/apps/test/todos-list/jest.config.ts b/apps/test/todos-list/jest.config.ts deleted file mode 100644 index 0abb644..0000000 --- a/apps/test/todos-list/jest.config.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'test-todos-list', - preset: '../../../jest.preset.js', - setupFilesAfterEnv: ['/src/test-setup.ts'], - transform: { - '^.+\\.(ts|mjs|js|html)$': [ - 'jest-preset-angular', - { - tsconfig: '/tsconfig.spec.json', - stringifyContentPathRegex: '\\.(html|svg)$', - }, - ], - }, - transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], - snapshotSerializers: [ - 'jest-preset-angular/build/serializers/no-ng-attributes', - 'jest-preset-angular/build/serializers/ng-snapshot', - 'jest-preset-angular/build/serializers/html-comment', - ], -}; diff --git a/apps/test/checkbox/.eslintrc.json b/apps/testing/checkbox/.eslintrc.json similarity index 100% rename from apps/test/checkbox/.eslintrc.json rename to apps/testing/checkbox/.eslintrc.json diff --git a/apps/test/checkbox/README.md b/apps/testing/checkbox/README.md similarity index 87% rename from apps/test/checkbox/README.md rename to apps/testing/checkbox/README.md index cf28393..c1c3db7 100644 --- a/apps/test/checkbox/README.md +++ b/apps/testing/checkbox/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-checkbox +npx nx serve testing-checkbox ``` ### Documentation and Instruction diff --git a/apps/test/checkbox/jest.config.ts b/apps/testing/checkbox/jest.config.ts similarity index 85% rename from apps/test/checkbox/jest.config.ts rename to apps/testing/checkbox/jest.config.ts index f0040d4..0c59029 100644 --- a/apps/test/checkbox/jest.config.ts +++ b/apps/testing/checkbox/jest.config.ts @@ -1,9 +1,9 @@ /* eslint-disable */ export default { - displayName: 'test-checkbox', + displayName: 'testing-checkbox', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], - coverageDirectory: '../../../coverage/apps/test/checkbox', + coverageDirectory: '../../../coverage/apps/testing/checkbox', transform: { '^.+\\.(ts|mjs|js|html)$': [ 'jest-preset-angular', diff --git a/apps/test/harness/project.json b/apps/testing/checkbox/project.json similarity index 70% rename from apps/test/harness/project.json rename to apps/testing/checkbox/project.json index 4c39ba5..e64b169 100644 --- a/apps/test/harness/project.json +++ b/apps/testing/checkbox/project.json @@ -1,25 +1,25 @@ { - "name": "test-harness", + "name": "testing-checkbox", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "prefix": "app", - "sourceRoot": "apps/test/harness/src", + "sourceRoot": "apps/testing/checkbox/src", "tags": [], "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/harness", - "index": "apps/test/harness/src/index.html", - "main": "apps/test/harness/src/main.ts", + "outputPath": "dist/apps/testing/checkbox", + "index": "apps/testing/checkbox/src/index.html", + "main": "apps/testing/checkbox/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/harness/tsconfig.app.json", + "tsConfig": "apps/testing/checkbox/tsconfig.app.json", "assets": [ - "apps/test/harness/src/favicon.ico", - "apps/test/harness/src/assets" + "apps/testing/checkbox/src/favicon.ico", + "apps/testing/checkbox/src/assets" ], - "styles": ["apps/test/harness/src/styles.scss"], + "styles": ["apps/testing/checkbox/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-harness:build:production" + "browserTarget": "testing-checkbox:build:production" }, "development": { - "browserTarget": "test-harness:build:development" + "browserTarget": "testing-checkbox:build:development" } }, "defaultConfiguration": "development" @@ -64,14 +64,24 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-harness:build" + "browserTarget": "testing-checkbox:build" + } + }, + "lint": { + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/testing/checkbox/**/*.ts", + "apps/testing/checkbox/**/*.html" + ] } }, "test": { "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/harness/jest.config.ts", + "jestConfig": "apps/testing/checkbox/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -80,16 +90,6 @@ "codeCoverage": true } } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "apps/test/harness/**/*.ts", - "apps/test/harness/**/*.html" - ] - } } } } diff --git a/apps/test/checkbox/src/app/app.component.spec.ts b/apps/testing/checkbox/src/app/app.component.spec.ts similarity index 100% rename from apps/test/checkbox/src/app/app.component.spec.ts rename to apps/testing/checkbox/src/app/app.component.spec.ts diff --git a/apps/test/checkbox/src/app/app.component.ts b/apps/testing/checkbox/src/app/app.component.ts similarity index 100% rename from apps/test/checkbox/src/app/app.component.ts rename to apps/testing/checkbox/src/app/app.component.ts diff --git a/apps/test/checkbox/src/assets/.gitkeep b/apps/testing/checkbox/src/assets/.gitkeep similarity index 100% rename from apps/test/checkbox/src/assets/.gitkeep rename to apps/testing/checkbox/src/assets/.gitkeep diff --git a/apps/test/checkbox/src/favicon.ico b/apps/testing/checkbox/src/favicon.ico similarity index 100% rename from apps/test/checkbox/src/favicon.ico rename to apps/testing/checkbox/src/favicon.ico diff --git a/apps/test/checkbox/src/index.html b/apps/testing/checkbox/src/index.html similarity index 100% rename from apps/test/checkbox/src/index.html rename to apps/testing/checkbox/src/index.html diff --git a/apps/test/checkbox/src/main.ts b/apps/testing/checkbox/src/main.ts similarity index 100% rename from apps/test/checkbox/src/main.ts rename to apps/testing/checkbox/src/main.ts diff --git a/apps/test/checkbox/src/styles.scss b/apps/testing/checkbox/src/styles.scss similarity index 100% rename from apps/test/checkbox/src/styles.scss rename to apps/testing/checkbox/src/styles.scss diff --git a/apps/test/checkbox/src/test-setup.ts b/apps/testing/checkbox/src/test-setup.ts similarity index 100% rename from apps/test/checkbox/src/test-setup.ts rename to apps/testing/checkbox/src/test-setup.ts diff --git a/apps/test/checkbox/tailwind.config.js b/apps/testing/checkbox/tailwind.config.js similarity index 100% rename from apps/test/checkbox/tailwind.config.js rename to apps/testing/checkbox/tailwind.config.js diff --git a/apps/test/checkbox/tsconfig.app.json b/apps/testing/checkbox/tsconfig.app.json similarity index 100% rename from apps/test/checkbox/tsconfig.app.json rename to apps/testing/checkbox/tsconfig.app.json diff --git a/apps/test/checkbox/tsconfig.editor.json b/apps/testing/checkbox/tsconfig.editor.json similarity index 100% rename from apps/test/checkbox/tsconfig.editor.json rename to apps/testing/checkbox/tsconfig.editor.json diff --git a/apps/test/checkbox/tsconfig.json b/apps/testing/checkbox/tsconfig.json similarity index 100% rename from apps/test/checkbox/tsconfig.json rename to apps/testing/checkbox/tsconfig.json diff --git a/apps/test/checkbox/tsconfig.spec.json b/apps/testing/checkbox/tsconfig.spec.json similarity index 100% rename from apps/test/checkbox/tsconfig.spec.json rename to apps/testing/checkbox/tsconfig.spec.json diff --git a/apps/test/create-harness/.eslintrc.json b/apps/testing/create-harness/.eslintrc.json similarity index 100% rename from apps/test/create-harness/.eslintrc.json rename to apps/testing/create-harness/.eslintrc.json diff --git a/apps/test/create-harness/README.md b/apps/testing/create-harness/README.md similarity index 86% rename from apps/test/create-harness/README.md rename to apps/testing/create-harness/README.md index 04ee765..4773835 100644 --- a/apps/test/create-harness/README.md +++ b/apps/testing/create-harness/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-create-harness +npx nx serve testing-create-harness ``` ### Documentation and Instruction diff --git a/apps/testing/create-harness/jest.config.ts b/apps/testing/create-harness/jest.config.ts new file mode 100644 index 0000000..1178b8a --- /dev/null +++ b/apps/testing/create-harness/jest.config.ts @@ -0,0 +1,21 @@ +/* eslint-disable */ +export default { + displayName: 'testing-create-harness', + preset: '../../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/apps/test/create-harness/project.json b/apps/testing/create-harness/project.json similarity index 68% rename from apps/test/create-harness/project.json rename to apps/testing/create-harness/project.json index b8d8794..180cb5f 100644 --- a/apps/test/create-harness/project.json +++ b/apps/testing/create-harness/project.json @@ -1,25 +1,25 @@ { - "name": "test-create-harness", + "name": "testing-create-harness", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "prefix": "app", - "sourceRoot": "apps/test/create-harness/src", + "sourceRoot": "apps/testing/create-harness/src", "tags": [], "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/create-harness", - "index": "apps/test/create-harness/src/index.html", - "main": "apps/test/create-harness/src/main.ts", + "outputPath": "dist/apps/testing/create-harness", + "index": "apps/testing/create-harness/src/index.html", + "main": "apps/testing/create-harness/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/create-harness/tsconfig.app.json", + "tsConfig": "apps/testing/create-harness/tsconfig.app.json", "assets": [ - "apps/test/create-harness/src/favicon.ico", - "apps/test/create-harness/src/assets" + "apps/testing/create-harness/src/favicon.ico", + "apps/testing/create-harness/src/assets" ], - "styles": ["apps/test/create-harness/src/styles.scss"], + "styles": ["apps/testing/create-harness/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-create-harness:build:production" + "browserTarget": "testing-create-harness:build:production" }, "development": { - "browserTarget": "test-create-harness:build:development" + "browserTarget": "testing-create-harness:build:development" } }, "defaultConfiguration": "development" @@ -64,14 +64,14 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-create-harness:build" + "browserTarget": "testing-create-harness:build" } }, "test": { "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/create-harness/jest.config.ts", + "jestConfig": "apps/testing/create-harness/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -86,8 +86,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/create-harness/**/*.ts", - "apps/test/create-harness/**/*.html" + "apps/testing/create-harness/**/*.ts", + "apps/testing/create-harness/**/*.html" ] } } diff --git a/apps/test/create-harness/src/app/app.component.spec.ts b/apps/testing/create-harness/src/app/app.component.spec.ts similarity index 100% rename from apps/test/create-harness/src/app/app.component.spec.ts rename to apps/testing/create-harness/src/app/app.component.spec.ts diff --git a/apps/test/create-harness/src/app/app.component.ts b/apps/testing/create-harness/src/app/app.component.ts similarity index 100% rename from apps/test/create-harness/src/app/app.component.ts rename to apps/testing/create-harness/src/app/app.component.ts diff --git a/apps/test/create-harness/src/app/app.config.ts b/apps/testing/create-harness/src/app/app.config.ts similarity index 100% rename from apps/test/create-harness/src/app/app.config.ts rename to apps/testing/create-harness/src/app/app.config.ts diff --git a/apps/test/create-harness/src/app/slider.component.ts b/apps/testing/create-harness/src/app/slider.component.ts similarity index 100% rename from apps/test/create-harness/src/app/slider.component.ts rename to apps/testing/create-harness/src/app/slider.component.ts diff --git a/apps/test/create-harness/src/app/slider.harness.ts b/apps/testing/create-harness/src/app/slider.harness.ts similarity index 100% rename from apps/test/create-harness/src/app/slider.harness.ts rename to apps/testing/create-harness/src/app/slider.harness.ts diff --git a/apps/test/create-harness/src/assets/.gitkeep b/apps/testing/create-harness/src/assets/.gitkeep similarity index 100% rename from apps/test/create-harness/src/assets/.gitkeep rename to apps/testing/create-harness/src/assets/.gitkeep diff --git a/apps/test/create-harness/src/favicon.ico b/apps/testing/create-harness/src/favicon.ico similarity index 100% rename from apps/test/create-harness/src/favicon.ico rename to apps/testing/create-harness/src/favicon.ico diff --git a/apps/test/create-harness/src/index.html b/apps/testing/create-harness/src/index.html similarity index 100% rename from apps/test/create-harness/src/index.html rename to apps/testing/create-harness/src/index.html diff --git a/apps/test/create-harness/src/main.ts b/apps/testing/create-harness/src/main.ts similarity index 100% rename from apps/test/create-harness/src/main.ts rename to apps/testing/create-harness/src/main.ts diff --git a/apps/test/create-harness/src/styles.scss b/apps/testing/create-harness/src/styles.scss similarity index 100% rename from apps/test/create-harness/src/styles.scss rename to apps/testing/create-harness/src/styles.scss diff --git a/apps/test/create-harness/src/test-setup.ts b/apps/testing/create-harness/src/test-setup.ts similarity index 100% rename from apps/test/create-harness/src/test-setup.ts rename to apps/testing/create-harness/src/test-setup.ts diff --git a/apps/test/create-harness/tailwind.config.js b/apps/testing/create-harness/tailwind.config.js similarity index 100% rename from apps/test/create-harness/tailwind.config.js rename to apps/testing/create-harness/tailwind.config.js diff --git a/apps/test/create-harness/tsconfig.app.json b/apps/testing/create-harness/tsconfig.app.json similarity index 100% rename from apps/test/create-harness/tsconfig.app.json rename to apps/testing/create-harness/tsconfig.app.json diff --git a/apps/test/create-harness/tsconfig.editor.json b/apps/testing/create-harness/tsconfig.editor.json similarity index 100% rename from apps/test/create-harness/tsconfig.editor.json rename to apps/testing/create-harness/tsconfig.editor.json diff --git a/apps/test/create-harness/tsconfig.json b/apps/testing/create-harness/tsconfig.json similarity index 100% rename from apps/test/create-harness/tsconfig.json rename to apps/testing/create-harness/tsconfig.json diff --git a/apps/test/create-harness/tsconfig.spec.json b/apps/testing/create-harness/tsconfig.spec.json similarity index 100% rename from apps/test/create-harness/tsconfig.spec.json rename to apps/testing/create-harness/tsconfig.spec.json diff --git a/apps/test/forms/.eslintrc.json b/apps/testing/forms/.eslintrc.json similarity index 100% rename from apps/test/forms/.eslintrc.json rename to apps/testing/forms/.eslintrc.json diff --git a/apps/test/forms/README.md b/apps/testing/forms/README.md similarity index 69% rename from apps/test/forms/README.md rename to apps/testing/forms/README.md index 42eb371..a996cd0 100644 --- a/apps/test/forms/README.md +++ b/apps/testing/forms/README.md @@ -8,13 +8,13 @@ NOT IMPLEMENTED YET @@ -23,9 +23,9 @@ I created some `it` blocks but feel free to add more test if you like to. --> 1. Fork the project 2. clone it 3. npm ci -4. `npx nx serve test-forms` to play with the application -5. `npx nx test test-forms` to test your application with Testing Library -6. `npx nx component-test test-forms --watch` to test your application with Cypress +4. `npx nx serve testing-forms` to play with the application +5. `npx nx test testing-forms` to test your application with Testing Library +6. `npx nx component-test testing-forms --watch` to test your application with Cypress 7. _...work on it_ 8. Commit your work 9. Submit a PR with a title beginning with **Answer:20** that I will review and other dev can review. diff --git a/apps/test/forms/cypress.config.ts b/apps/testing/forms/cypress.config.ts similarity index 100% rename from apps/test/forms/cypress.config.ts rename to apps/testing/forms/cypress.config.ts diff --git a/apps/test/forms/cypress/fixtures/example.json b/apps/testing/forms/cypress/fixtures/example.json similarity index 100% rename from apps/test/forms/cypress/fixtures/example.json rename to apps/testing/forms/cypress/fixtures/example.json diff --git a/apps/test/forms/cypress/support/commands.ts b/apps/testing/forms/cypress/support/commands.ts similarity index 100% rename from apps/test/forms/cypress/support/commands.ts rename to apps/testing/forms/cypress/support/commands.ts diff --git a/apps/test/forms/cypress/support/component-index.html b/apps/testing/forms/cypress/support/component-index.html similarity index 100% rename from apps/test/forms/cypress/support/component-index.html rename to apps/testing/forms/cypress/support/component-index.html diff --git a/apps/test/forms/cypress/support/component.ts b/apps/testing/forms/cypress/support/component.ts similarity index 100% rename from apps/test/forms/cypress/support/component.ts rename to apps/testing/forms/cypress/support/component.ts diff --git a/apps/test/forms/cypress/tsconfig.json b/apps/testing/forms/cypress/tsconfig.json similarity index 100% rename from apps/test/forms/cypress/tsconfig.json rename to apps/testing/forms/cypress/tsconfig.json diff --git a/apps/test/modal/jest.config.ts b/apps/testing/forms/jest.config.ts similarity index 95% rename from apps/test/modal/jest.config.ts rename to apps/testing/forms/jest.config.ts index ad308f8..bee4054 100644 --- a/apps/test/modal/jest.config.ts +++ b/apps/testing/forms/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-modal', + displayName: 'testing-forms', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { diff --git a/apps/test/nested/project.json b/apps/testing/forms/project.json similarity index 71% rename from apps/test/nested/project.json rename to apps/testing/forms/project.json index 487eb15..dbec4f4 100644 --- a/apps/test/nested/project.json +++ b/apps/testing/forms/project.json @@ -1,25 +1,25 @@ { - "name": "test-nested", + "name": "testing-forms", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/nested/src", + "sourceRoot": "apps/testing/forms/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/nested", - "index": "apps/test/nested/src/index.html", - "main": "apps/test/nested/src/main.ts", + "outputPath": "dist/apps/testing/forms", + "index": "apps/testing/forms/src/index.html", + "main": "apps/testing/forms/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/nested/tsconfig.app.json", + "tsConfig": "apps/testing/forms/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/nested/src/favicon.ico", - "apps/test/nested/src/assets" + "apps/testing/forms/src/favicon.ico", + "apps/testing/forms/src/assets" ], - "styles": ["apps/test/nested/src/styles.scss"], + "styles": ["apps/testing/forms/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-nested:build:production" + "browserTarget": "testing-forms:build:production" }, "development": { - "browserTarget": "test-nested:build:development" + "browserTarget": "testing-forms:build:development" } }, "defaultConfiguration": "development" @@ -64,7 +64,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-nested:build" + "browserTarget": "testing-forms:build" } }, "lint": { @@ -72,8 +72,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/nested/**/*.ts", - "apps/test/nested/**/*.html" + "apps/testing/forms/**/*.ts", + "apps/testing/forms/**/*.html" ] } }, @@ -81,7 +81,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/nested/jest.config.ts", + "jestConfig": "apps/testing/forms/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -94,10 +94,10 @@ "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/nested/cypress.config.ts", + "cypressConfig": "apps/testing/forms/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-nested:build" + "devServerTarget": "testing-forms:build" } } }, diff --git a/apps/test/forms/src/app/app.component.spec.ts b/apps/testing/forms/src/app/app.component.spec.ts similarity index 100% rename from apps/test/forms/src/app/app.component.spec.ts rename to apps/testing/forms/src/app/app.component.spec.ts diff --git a/apps/test/forms/src/app/app.component.ts b/apps/testing/forms/src/app/app.component.ts similarity index 100% rename from apps/test/forms/src/app/app.component.ts rename to apps/testing/forms/src/app/app.component.ts diff --git a/apps/test/forms/src/app/nx-welcome.component.ts b/apps/testing/forms/src/app/nx-welcome.component.ts similarity index 100% rename from apps/test/forms/src/app/nx-welcome.component.ts rename to apps/testing/forms/src/app/nx-welcome.component.ts diff --git a/apps/test/forms/src/assets/.gitkeep b/apps/testing/forms/src/assets/.gitkeep similarity index 100% rename from apps/test/forms/src/assets/.gitkeep rename to apps/testing/forms/src/assets/.gitkeep diff --git a/apps/test/forms/src/favicon.ico b/apps/testing/forms/src/favicon.ico similarity index 100% rename from apps/test/forms/src/favicon.ico rename to apps/testing/forms/src/favicon.ico diff --git a/apps/test/forms/src/index.html b/apps/testing/forms/src/index.html similarity index 100% rename from apps/test/forms/src/index.html rename to apps/testing/forms/src/index.html diff --git a/apps/test/forms/src/main.ts b/apps/testing/forms/src/main.ts similarity index 100% rename from apps/test/forms/src/main.ts rename to apps/testing/forms/src/main.ts diff --git a/apps/test/forms/src/styles.scss b/apps/testing/forms/src/styles.scss similarity index 100% rename from apps/test/forms/src/styles.scss rename to apps/testing/forms/src/styles.scss diff --git a/apps/test/forms/src/test-setup.ts b/apps/testing/forms/src/test-setup.ts similarity index 100% rename from apps/test/forms/src/test-setup.ts rename to apps/testing/forms/src/test-setup.ts diff --git a/apps/test/forms/tailwind.config.js b/apps/testing/forms/tailwind.config.js similarity index 100% rename from apps/test/forms/tailwind.config.js rename to apps/testing/forms/tailwind.config.js diff --git a/apps/test/forms/tsconfig.app.json b/apps/testing/forms/tsconfig.app.json similarity index 100% rename from apps/test/forms/tsconfig.app.json rename to apps/testing/forms/tsconfig.app.json diff --git a/apps/test/forms/tsconfig.editor.json b/apps/testing/forms/tsconfig.editor.json similarity index 100% rename from apps/test/forms/tsconfig.editor.json rename to apps/testing/forms/tsconfig.editor.json diff --git a/apps/test/forms/tsconfig.json b/apps/testing/forms/tsconfig.json similarity index 100% rename from apps/test/forms/tsconfig.json rename to apps/testing/forms/tsconfig.json diff --git a/apps/test/forms/tsconfig.spec.json b/apps/testing/forms/tsconfig.spec.json similarity index 100% rename from apps/test/forms/tsconfig.spec.json rename to apps/testing/forms/tsconfig.spec.json diff --git a/apps/test/harness/.eslintrc.json b/apps/testing/harness/.eslintrc.json similarity index 100% rename from apps/test/harness/.eslintrc.json rename to apps/testing/harness/.eslintrc.json diff --git a/apps/test/harness/README.md b/apps/testing/harness/README.md similarity index 87% rename from apps/test/harness/README.md rename to apps/testing/harness/README.md index 7740c05..15d9b51 100644 --- a/apps/test/harness/README.md +++ b/apps/testing/harness/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-harness +npx nx serve testing-harness ``` ### Documentation and Instruction diff --git a/apps/testing/harness/jest.config.ts b/apps/testing/harness/jest.config.ts new file mode 100644 index 0000000..2b9e6d4 --- /dev/null +++ b/apps/testing/harness/jest.config.ts @@ -0,0 +1,21 @@ +/* eslint-disable */ +export default { + displayName: 'testing-harness', + preset: '../../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/apps/test/checkbox/project.json b/apps/testing/harness/project.json similarity index 71% rename from apps/test/checkbox/project.json rename to apps/testing/harness/project.json index 66ae918..b237663 100644 --- a/apps/test/checkbox/project.json +++ b/apps/testing/harness/project.json @@ -1,25 +1,25 @@ { - "name": "test-checkbox", + "name": "testing-harness", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "prefix": "app", - "sourceRoot": "apps/test/checkbox/src", + "sourceRoot": "apps/testing/harness/src", "tags": [], "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/checkbox", - "index": "apps/test/checkbox/src/index.html", - "main": "apps/test/checkbox/src/main.ts", + "outputPath": "dist/apps/testing/harness", + "index": "apps/testing/harness/src/index.html", + "main": "apps/testing/harness/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/checkbox/tsconfig.app.json", + "tsConfig": "apps/testing/harness/tsconfig.app.json", "assets": [ - "apps/test/checkbox/src/favicon.ico", - "apps/test/checkbox/src/assets" + "apps/testing/harness/src/favicon.ico", + "apps/testing/harness/src/assets" ], - "styles": ["apps/test/checkbox/src/styles.scss"], + "styles": ["apps/testing/harness/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-checkbox:build:production" + "browserTarget": "testing-harness:build:production" }, "development": { - "browserTarget": "test-checkbox:build:development" + "browserTarget": "testing-harness:build:development" } }, "defaultConfiguration": "development" @@ -64,24 +64,14 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-checkbox:build" - } - }, - "lint": { - "executor": "@nx/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "apps/test/checkbox/**/*.ts", - "apps/test/checkbox/**/*.html" - ] + "browserTarget": "testing-harness:build" } }, "test": { "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/checkbox/jest.config.ts", + "jestConfig": "apps/testing/harness/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -90,6 +80,16 @@ "codeCoverage": true } } + }, + "lint": { + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/testing/harness/**/*.ts", + "apps/testing/harness/**/*.html" + ] + } } } } diff --git a/apps/test/harness/src/app/app.component.ts b/apps/testing/harness/src/app/app.component.ts similarity index 100% rename from apps/test/harness/src/app/app.component.ts rename to apps/testing/harness/src/app/app.component.ts diff --git a/apps/test/harness/src/app/app.config.ts b/apps/testing/harness/src/app/app.config.ts similarity index 100% rename from apps/test/harness/src/app/app.config.ts rename to apps/testing/harness/src/app/app.config.ts diff --git a/apps/test/harness/src/app/child.component.spec.ts b/apps/testing/harness/src/app/child.component.spec.ts similarity index 100% rename from apps/test/harness/src/app/child.component.spec.ts rename to apps/testing/harness/src/app/child.component.spec.ts diff --git a/apps/test/harness/src/app/child.component.ts b/apps/testing/harness/src/app/child.component.ts similarity index 100% rename from apps/test/harness/src/app/child.component.ts rename to apps/testing/harness/src/app/child.component.ts diff --git a/apps/test/harness/src/assets/.gitkeep b/apps/testing/harness/src/assets/.gitkeep similarity index 100% rename from apps/test/harness/src/assets/.gitkeep rename to apps/testing/harness/src/assets/.gitkeep diff --git a/apps/test/harness/src/favicon.ico b/apps/testing/harness/src/favicon.ico similarity index 100% rename from apps/test/harness/src/favicon.ico rename to apps/testing/harness/src/favicon.ico diff --git a/apps/test/harness/src/index.html b/apps/testing/harness/src/index.html similarity index 100% rename from apps/test/harness/src/index.html rename to apps/testing/harness/src/index.html diff --git a/apps/test/harness/src/main.ts b/apps/testing/harness/src/main.ts similarity index 100% rename from apps/test/harness/src/main.ts rename to apps/testing/harness/src/main.ts diff --git a/apps/test/harness/src/styles.scss b/apps/testing/harness/src/styles.scss similarity index 100% rename from apps/test/harness/src/styles.scss rename to apps/testing/harness/src/styles.scss diff --git a/apps/test/harness/src/test-setup.ts b/apps/testing/harness/src/test-setup.ts similarity index 100% rename from apps/test/harness/src/test-setup.ts rename to apps/testing/harness/src/test-setup.ts diff --git a/apps/test/harness/tailwind.config.js b/apps/testing/harness/tailwind.config.js similarity index 100% rename from apps/test/harness/tailwind.config.js rename to apps/testing/harness/tailwind.config.js diff --git a/apps/test/harness/tsconfig.app.json b/apps/testing/harness/tsconfig.app.json similarity index 100% rename from apps/test/harness/tsconfig.app.json rename to apps/testing/harness/tsconfig.app.json diff --git a/apps/test/harness/tsconfig.editor.json b/apps/testing/harness/tsconfig.editor.json similarity index 100% rename from apps/test/harness/tsconfig.editor.json rename to apps/testing/harness/tsconfig.editor.json diff --git a/apps/test/harness/tsconfig.json b/apps/testing/harness/tsconfig.json similarity index 100% rename from apps/test/harness/tsconfig.json rename to apps/testing/harness/tsconfig.json diff --git a/apps/test/harness/tsconfig.spec.json b/apps/testing/harness/tsconfig.spec.json similarity index 100% rename from apps/test/harness/tsconfig.spec.json rename to apps/testing/harness/tsconfig.spec.json diff --git a/apps/test/input-output/.eslintrc.json b/apps/testing/input-output/.eslintrc.json similarity index 100% rename from apps/test/input-output/.eslintrc.json rename to apps/testing/input-output/.eslintrc.json diff --git a/apps/test/input-output/README.md b/apps/testing/input-output/README.md similarity index 86% rename from apps/test/input-output/README.md rename to apps/testing/input-output/README.md index cb3c1ac..127480a 100644 --- a/apps/test/input-output/README.md +++ b/apps/testing/input-output/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-input-output +npx nx serve testing-input-output ``` ### Documentation and Instruction diff --git a/apps/test/input-output/cypress.config.ts b/apps/testing/input-output/cypress.config.ts similarity index 100% rename from apps/test/input-output/cypress.config.ts rename to apps/testing/input-output/cypress.config.ts diff --git a/apps/test/input-output/cypress/fixtures/example.json b/apps/testing/input-output/cypress/fixtures/example.json similarity index 100% rename from apps/test/input-output/cypress/fixtures/example.json rename to apps/testing/input-output/cypress/fixtures/example.json diff --git a/apps/test/input-output/cypress/support/commands.ts b/apps/testing/input-output/cypress/support/commands.ts similarity index 100% rename from apps/test/input-output/cypress/support/commands.ts rename to apps/testing/input-output/cypress/support/commands.ts diff --git a/apps/test/input-output/cypress/support/component-index.html b/apps/testing/input-output/cypress/support/component-index.html similarity index 100% rename from apps/test/input-output/cypress/support/component-index.html rename to apps/testing/input-output/cypress/support/component-index.html diff --git a/apps/test/input-output/cypress/support/component.ts b/apps/testing/input-output/cypress/support/component.ts similarity index 100% rename from apps/test/input-output/cypress/support/component.ts rename to apps/testing/input-output/cypress/support/component.ts diff --git a/apps/test/input-output/cypress/tsconfig.json b/apps/testing/input-output/cypress/tsconfig.json similarity index 100% rename from apps/test/input-output/cypress/tsconfig.json rename to apps/testing/input-output/cypress/tsconfig.json diff --git a/apps/test/create-harness/jest.config.ts b/apps/testing/input-output/jest.config.ts similarity index 93% rename from apps/test/create-harness/jest.config.ts rename to apps/testing/input-output/jest.config.ts index 24af0dd..63370e2 100644 --- a/apps/test/create-harness/jest.config.ts +++ b/apps/testing/input-output/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-create-harness', + displayName: 'testing-input-output', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { diff --git a/apps/test/input-output/project.json b/apps/testing/input-output/project.json similarity index 68% rename from apps/test/input-output/project.json rename to apps/testing/input-output/project.json index 91aae78..213c13d 100644 --- a/apps/test/input-output/project.json +++ b/apps/testing/input-output/project.json @@ -1,25 +1,25 @@ { - "name": "test-input-output", + "name": "testing-input-output", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/input-output/src", + "sourceRoot": "apps/testing/input-output/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/input-output", - "index": "apps/test/input-output/src/index.html", - "main": "apps/test/input-output/src/main.ts", + "outputPath": "dist/apps/testing/input-output", + "index": "apps/testing/input-output/src/index.html", + "main": "apps/testing/input-output/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/input-output/tsconfig.app.json", + "tsConfig": "apps/testing/input-output/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/input-output/src/favicon.ico", - "apps/test/input-output/src/assets" + "apps/testing/input-output/src/favicon.ico", + "apps/testing/input-output/src/assets" ], - "styles": ["apps/test/input-output/src/styles.scss"], + "styles": ["apps/testing/input-output/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-input-output:build:production" + "browserTarget": "testing-input-output:build:production" }, "development": { - "browserTarget": "test-input-output:build:development" + "browserTarget": "testing-input-output:build:development" } }, "defaultConfiguration": "development" @@ -64,7 +64,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-input-output:build" + "browserTarget": "testing-input-output:build" } }, "lint": { @@ -72,8 +72,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/input-output/**/*.ts", - "apps/test/input-output/**/*.html" + "apps/testing/input-output/**/*.ts", + "apps/testing/input-output/**/*.html" ] } }, @@ -81,7 +81,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/input-output/jest.config.ts", + "jestConfig": "apps/testing/input-output/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -94,10 +94,10 @@ "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/input-output/cypress.config.ts", + "cypressConfig": "apps/testing/input-output/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-input-output:build" + "devServerTarget": "testing-input-output:build" } } }, diff --git a/apps/test/input-output/src/app/app.component.ts b/apps/testing/input-output/src/app/app.component.ts similarity index 100% rename from apps/test/input-output/src/app/app.component.ts rename to apps/testing/input-output/src/app/app.component.ts diff --git a/apps/test/input-output/src/app/counter.component.cy.ts b/apps/testing/input-output/src/app/counter.component.cy.ts similarity index 100% rename from apps/test/input-output/src/app/counter.component.cy.ts rename to apps/testing/input-output/src/app/counter.component.cy.ts diff --git a/apps/test/input-output/src/app/counter.component.spec.ts b/apps/testing/input-output/src/app/counter.component.spec.ts similarity index 100% rename from apps/test/input-output/src/app/counter.component.spec.ts rename to apps/testing/input-output/src/app/counter.component.spec.ts diff --git a/apps/test/input-output/src/app/counter.component.ts b/apps/testing/input-output/src/app/counter.component.ts similarity index 100% rename from apps/test/input-output/src/app/counter.component.ts rename to apps/testing/input-output/src/app/counter.component.ts diff --git a/apps/test/input-output/src/assets/.gitkeep b/apps/testing/input-output/src/assets/.gitkeep similarity index 100% rename from apps/test/input-output/src/assets/.gitkeep rename to apps/testing/input-output/src/assets/.gitkeep diff --git a/apps/test/input-output/src/favicon.ico b/apps/testing/input-output/src/favicon.ico similarity index 100% rename from apps/test/input-output/src/favicon.ico rename to apps/testing/input-output/src/favicon.ico diff --git a/apps/test/input-output/src/index.html b/apps/testing/input-output/src/index.html similarity index 100% rename from apps/test/input-output/src/index.html rename to apps/testing/input-output/src/index.html diff --git a/apps/test/input-output/src/main.ts b/apps/testing/input-output/src/main.ts similarity index 100% rename from apps/test/input-output/src/main.ts rename to apps/testing/input-output/src/main.ts diff --git a/apps/test/input-output/src/styles.scss b/apps/testing/input-output/src/styles.scss similarity index 100% rename from apps/test/input-output/src/styles.scss rename to apps/testing/input-output/src/styles.scss diff --git a/apps/test/input-output/src/test-setup.ts b/apps/testing/input-output/src/test-setup.ts similarity index 100% rename from apps/test/input-output/src/test-setup.ts rename to apps/testing/input-output/src/test-setup.ts diff --git a/apps/test/input-output/tsconfig.app.json b/apps/testing/input-output/tsconfig.app.json similarity index 100% rename from apps/test/input-output/tsconfig.app.json rename to apps/testing/input-output/tsconfig.app.json diff --git a/apps/test/input-output/tsconfig.editor.json b/apps/testing/input-output/tsconfig.editor.json similarity index 100% rename from apps/test/input-output/tsconfig.editor.json rename to apps/testing/input-output/tsconfig.editor.json diff --git a/apps/test/input-output/tsconfig.json b/apps/testing/input-output/tsconfig.json similarity index 100% rename from apps/test/input-output/tsconfig.json rename to apps/testing/input-output/tsconfig.json diff --git a/apps/test/input-output/tsconfig.spec.json b/apps/testing/input-output/tsconfig.spec.json similarity index 100% rename from apps/test/input-output/tsconfig.spec.json rename to apps/testing/input-output/tsconfig.spec.json diff --git a/apps/test/modal/.eslintrc.json b/apps/testing/modal/.eslintrc.json similarity index 100% rename from apps/test/modal/.eslintrc.json rename to apps/testing/modal/.eslintrc.json diff --git a/apps/test/modal/README.md b/apps/testing/modal/README.md similarity index 88% rename from apps/test/modal/README.md rename to apps/testing/modal/README.md index c55f0f8..01cc159 100644 --- a/apps/test/modal/README.md +++ b/apps/testing/modal/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-modal +npx nx serve testing-modal ``` ### Documentation and Instruction diff --git a/apps/test/modal/cypress.config.ts b/apps/testing/modal/cypress.config.ts similarity index 100% rename from apps/test/modal/cypress.config.ts rename to apps/testing/modal/cypress.config.ts diff --git a/apps/test/modal/cypress/fixtures/example.json b/apps/testing/modal/cypress/fixtures/example.json similarity index 100% rename from apps/test/modal/cypress/fixtures/example.json rename to apps/testing/modal/cypress/fixtures/example.json diff --git a/apps/test/modal/cypress/support/commands.ts b/apps/testing/modal/cypress/support/commands.ts similarity index 100% rename from apps/test/modal/cypress/support/commands.ts rename to apps/testing/modal/cypress/support/commands.ts diff --git a/apps/test/modal/cypress/support/component-index.html b/apps/testing/modal/cypress/support/component-index.html similarity index 100% rename from apps/test/modal/cypress/support/component-index.html rename to apps/testing/modal/cypress/support/component-index.html diff --git a/apps/test/modal/cypress/support/component.ts b/apps/testing/modal/cypress/support/component.ts similarity index 100% rename from apps/test/modal/cypress/support/component.ts rename to apps/testing/modal/cypress/support/component.ts diff --git a/apps/test/modal/cypress/tsconfig.json b/apps/testing/modal/cypress/tsconfig.json similarity index 100% rename from apps/test/modal/cypress/tsconfig.json rename to apps/testing/modal/cypress/tsconfig.json diff --git a/apps/test/nested/jest.config.ts b/apps/testing/modal/jest.config.ts similarity index 95% rename from apps/test/nested/jest.config.ts rename to apps/testing/modal/jest.config.ts index a379ad5..809080b 100644 --- a/apps/test/nested/jest.config.ts +++ b/apps/testing/modal/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-nested', + displayName: 'testing-modal', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { diff --git a/apps/test/modal/project.json b/apps/testing/modal/project.json similarity index 72% rename from apps/test/modal/project.json rename to apps/testing/modal/project.json index 1bd266a..1b7bc56 100644 --- a/apps/test/modal/project.json +++ b/apps/testing/modal/project.json @@ -1,26 +1,26 @@ { - "name": "test-modal", + "name": "testing-modal", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/modal/src", + "sourceRoot": "apps/testing/modal/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/modal", - "index": "apps/test/modal/src/index.html", - "main": "apps/test/modal/src/main.ts", + "outputPath": "dist/apps/testing/modal", + "index": "apps/testing/modal/src/index.html", + "main": "apps/testing/modal/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/modal/tsconfig.app.json", + "tsConfig": "apps/testing/modal/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/modal/src/favicon.ico", - "apps/test/modal/src/assets" + "apps/testing/modal/src/favicon.ico", + "apps/testing/modal/src/assets" ], "styles": [ - "apps/test/modal/src/styles.scss", + "apps/testing/modal/src/styles.scss", "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css" ], "scripts": [] @@ -56,10 +56,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-modal:build:production" + "browserTarget": "testing-modal:build:production" }, "development": { - "browserTarget": "test-modal:build:development" + "browserTarget": "testing-modal:build:development" } }, "defaultConfiguration": "development" @@ -67,7 +67,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-modal:build" + "browserTarget": "testing-modal:build" } }, "lint": { @@ -75,8 +75,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/modal/**/*.ts", - "apps/test/modal/**/*.html" + "apps/testing/modal/**/*.ts", + "apps/testing/modal/**/*.html" ] } }, @@ -84,7 +84,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/modal/jest.config.ts", + "jestConfig": "apps/testing/modal/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -97,10 +97,10 @@ "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/modal/cypress.config.ts", + "cypressConfig": "apps/testing/modal/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-modal:build" + "devServerTarget": "testing-modal:build" } } }, diff --git a/apps/test/modal/src/app/app.component.cy.ts b/apps/testing/modal/src/app/app.component.cy.ts similarity index 100% rename from apps/test/modal/src/app/app.component.cy.ts rename to apps/testing/modal/src/app/app.component.cy.ts diff --git a/apps/test/modal/src/app/app.component.spec.ts b/apps/testing/modal/src/app/app.component.spec.ts similarity index 100% rename from apps/test/modal/src/app/app.component.spec.ts rename to apps/testing/modal/src/app/app.component.spec.ts diff --git a/apps/test/modal/src/app/app.component.ts b/apps/testing/modal/src/app/app.component.ts similarity index 100% rename from apps/test/modal/src/app/app.component.ts rename to apps/testing/modal/src/app/app.component.ts diff --git a/apps/test/modal/src/app/app.config.ts b/apps/testing/modal/src/app/app.config.ts similarity index 100% rename from apps/test/modal/src/app/app.config.ts rename to apps/testing/modal/src/app/app.config.ts diff --git a/apps/test/modal/src/app/error.dialog.ts b/apps/testing/modal/src/app/error.dialog.ts similarity index 100% rename from apps/test/modal/src/app/error.dialog.ts rename to apps/testing/modal/src/app/error.dialog.ts diff --git a/apps/test/modal/src/app/profil-confirmation.dialog.ts b/apps/testing/modal/src/app/profil-confirmation.dialog.ts similarity index 100% rename from apps/test/modal/src/app/profil-confirmation.dialog.ts rename to apps/testing/modal/src/app/profil-confirmation.dialog.ts diff --git a/apps/test/modal/src/assets/.gitkeep b/apps/testing/modal/src/assets/.gitkeep similarity index 100% rename from apps/test/modal/src/assets/.gitkeep rename to apps/testing/modal/src/assets/.gitkeep diff --git a/apps/test/modal/src/favicon.ico b/apps/testing/modal/src/favicon.ico similarity index 100% rename from apps/test/modal/src/favicon.ico rename to apps/testing/modal/src/favicon.ico diff --git a/apps/test/modal/src/index.html b/apps/testing/modal/src/index.html similarity index 100% rename from apps/test/modal/src/index.html rename to apps/testing/modal/src/index.html diff --git a/apps/test/modal/src/main.ts b/apps/testing/modal/src/main.ts similarity index 100% rename from apps/test/modal/src/main.ts rename to apps/testing/modal/src/main.ts diff --git a/apps/test/modal/src/styles.scss b/apps/testing/modal/src/styles.scss similarity index 100% rename from apps/test/modal/src/styles.scss rename to apps/testing/modal/src/styles.scss diff --git a/apps/test/modal/src/test-setup.ts b/apps/testing/modal/src/test-setup.ts similarity index 100% rename from apps/test/modal/src/test-setup.ts rename to apps/testing/modal/src/test-setup.ts diff --git a/apps/test/modal/tailwind.config.js b/apps/testing/modal/tailwind.config.js similarity index 100% rename from apps/test/modal/tailwind.config.js rename to apps/testing/modal/tailwind.config.js diff --git a/apps/test/modal/tsconfig.app.json b/apps/testing/modal/tsconfig.app.json similarity index 100% rename from apps/test/modal/tsconfig.app.json rename to apps/testing/modal/tsconfig.app.json diff --git a/apps/test/modal/tsconfig.editor.json b/apps/testing/modal/tsconfig.editor.json similarity index 100% rename from apps/test/modal/tsconfig.editor.json rename to apps/testing/modal/tsconfig.editor.json diff --git a/apps/test/modal/tsconfig.json b/apps/testing/modal/tsconfig.json similarity index 100% rename from apps/test/modal/tsconfig.json rename to apps/testing/modal/tsconfig.json diff --git a/apps/test/modal/tsconfig.spec.json b/apps/testing/modal/tsconfig.spec.json similarity index 100% rename from apps/test/modal/tsconfig.spec.json rename to apps/testing/modal/tsconfig.spec.json diff --git a/apps/test/nested/.eslintrc.json b/apps/testing/nested/.eslintrc.json similarity index 100% rename from apps/test/nested/.eslintrc.json rename to apps/testing/nested/.eslintrc.json diff --git a/apps/test/nested/README.md b/apps/testing/nested/README.md similarity index 88% rename from apps/test/nested/README.md rename to apps/testing/nested/README.md index a5c37b1..1b7fea6 100644 --- a/apps/test/nested/README.md +++ b/apps/testing/nested/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-nested +npx nx serve testing-nested ``` ### Documentation and Instruction diff --git a/apps/test/nested/cypress.config.ts b/apps/testing/nested/cypress.config.ts similarity index 100% rename from apps/test/nested/cypress.config.ts rename to apps/testing/nested/cypress.config.ts diff --git a/apps/test/nested/cypress/fixtures/example.json b/apps/testing/nested/cypress/fixtures/example.json similarity index 100% rename from apps/test/nested/cypress/fixtures/example.json rename to apps/testing/nested/cypress/fixtures/example.json diff --git a/apps/test/nested/cypress/support/commands.ts b/apps/testing/nested/cypress/support/commands.ts similarity index 100% rename from apps/test/nested/cypress/support/commands.ts rename to apps/testing/nested/cypress/support/commands.ts diff --git a/apps/test/nested/cypress/support/component-index.html b/apps/testing/nested/cypress/support/component-index.html similarity index 100% rename from apps/test/nested/cypress/support/component-index.html rename to apps/testing/nested/cypress/support/component-index.html diff --git a/apps/test/nested/cypress/support/component.ts b/apps/testing/nested/cypress/support/component.ts similarity index 100% rename from apps/test/nested/cypress/support/component.ts rename to apps/testing/nested/cypress/support/component.ts diff --git a/apps/test/nested/cypress/tsconfig.json b/apps/testing/nested/cypress/tsconfig.json similarity index 100% rename from apps/test/nested/cypress/tsconfig.json rename to apps/testing/nested/cypress/tsconfig.json diff --git a/apps/test/harness/jest.config.ts b/apps/testing/nested/jest.config.ts similarity index 94% rename from apps/test/harness/jest.config.ts rename to apps/testing/nested/jest.config.ts index c7beb63..a89947b 100644 --- a/apps/test/harness/jest.config.ts +++ b/apps/testing/nested/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-harness', + displayName: 'testing-nested', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { diff --git a/apps/test/forms/project.json b/apps/testing/nested/project.json similarity index 70% rename from apps/test/forms/project.json rename to apps/testing/nested/project.json index 6ce0a1b..17ff591 100644 --- a/apps/test/forms/project.json +++ b/apps/testing/nested/project.json @@ -1,25 +1,25 @@ { - "name": "test-forms", + "name": "testing-nested", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/forms/src", + "sourceRoot": "apps/testing/nested/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/forms", - "index": "apps/test/forms/src/index.html", - "main": "apps/test/forms/src/main.ts", + "outputPath": "dist/apps/testing/nested", + "index": "apps/testing/nested/src/index.html", + "main": "apps/testing/nested/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/forms/tsconfig.app.json", + "tsConfig": "apps/testing/nested/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/forms/src/favicon.ico", - "apps/test/forms/src/assets" + "apps/testing/nested/src/favicon.ico", + "apps/testing/nested/src/assets" ], - "styles": ["apps/test/forms/src/styles.scss"], + "styles": ["apps/testing/nested/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-forms:build:production" + "browserTarget": "testing-nested:build:production" }, "development": { - "browserTarget": "test-forms:build:development" + "browserTarget": "testing-nested:build:development" } }, "defaultConfiguration": "development" @@ -64,7 +64,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-forms:build" + "browserTarget": "testing-nested:build" } }, "lint": { @@ -72,8 +72,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/forms/**/*.ts", - "apps/test/forms/**/*.html" + "apps/testing/nested/**/*.ts", + "apps/testing/nested/**/*.html" ] } }, @@ -81,7 +81,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/forms/jest.config.ts", + "jestConfig": "apps/testing/nested/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -94,10 +94,10 @@ "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/forms/cypress.config.ts", + "cypressConfig": "apps/testing/nested/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-forms:build" + "devServerTarget": "testing-nested:build" } } }, diff --git a/apps/test/nested/src/app/app.component.ts b/apps/testing/nested/src/app/app.component.ts similarity index 100% rename from apps/test/nested/src/app/app.component.ts rename to apps/testing/nested/src/app/app.component.ts diff --git a/apps/test/nested/src/app/child.component.cy.ts b/apps/testing/nested/src/app/child.component.cy.ts similarity index 100% rename from apps/test/nested/src/app/child.component.cy.ts rename to apps/testing/nested/src/app/child.component.cy.ts diff --git a/apps/test/nested/src/app/child.component.spec.ts b/apps/testing/nested/src/app/child.component.spec.ts similarity index 100% rename from apps/test/nested/src/app/child.component.spec.ts rename to apps/testing/nested/src/app/child.component.spec.ts diff --git a/apps/test/nested/src/app/child.component.ts b/apps/testing/nested/src/app/child.component.ts similarity index 100% rename from apps/test/nested/src/app/child.component.ts rename to apps/testing/nested/src/app/child.component.ts diff --git a/apps/test/nested/src/app/http.service.ts b/apps/testing/nested/src/app/http.service.ts similarity index 100% rename from apps/test/nested/src/app/http.service.ts rename to apps/testing/nested/src/app/http.service.ts diff --git a/apps/test/nested/src/assets/.gitkeep b/apps/testing/nested/src/assets/.gitkeep similarity index 100% rename from apps/test/nested/src/assets/.gitkeep rename to apps/testing/nested/src/assets/.gitkeep diff --git a/apps/test/nested/src/favicon.ico b/apps/testing/nested/src/favicon.ico similarity index 100% rename from apps/test/nested/src/favicon.ico rename to apps/testing/nested/src/favicon.ico diff --git a/apps/test/nested/src/index.html b/apps/testing/nested/src/index.html similarity index 100% rename from apps/test/nested/src/index.html rename to apps/testing/nested/src/index.html diff --git a/apps/test/nested/src/main.ts b/apps/testing/nested/src/main.ts similarity index 100% rename from apps/test/nested/src/main.ts rename to apps/testing/nested/src/main.ts diff --git a/apps/test/nested/src/styles.scss b/apps/testing/nested/src/styles.scss similarity index 100% rename from apps/test/nested/src/styles.scss rename to apps/testing/nested/src/styles.scss diff --git a/apps/test/nested/src/test-setup.ts b/apps/testing/nested/src/test-setup.ts similarity index 100% rename from apps/test/nested/src/test-setup.ts rename to apps/testing/nested/src/test-setup.ts diff --git a/apps/test/nested/tsconfig.app.json b/apps/testing/nested/tsconfig.app.json similarity index 100% rename from apps/test/nested/tsconfig.app.json rename to apps/testing/nested/tsconfig.app.json diff --git a/apps/test/nested/tsconfig.editor.json b/apps/testing/nested/tsconfig.editor.json similarity index 100% rename from apps/test/nested/tsconfig.editor.json rename to apps/testing/nested/tsconfig.editor.json diff --git a/apps/test/nested/tsconfig.json b/apps/testing/nested/tsconfig.json similarity index 100% rename from apps/test/nested/tsconfig.json rename to apps/testing/nested/tsconfig.json diff --git a/apps/test/nested/tsconfig.spec.json b/apps/testing/nested/tsconfig.spec.json similarity index 100% rename from apps/test/nested/tsconfig.spec.json rename to apps/testing/nested/tsconfig.spec.json diff --git a/apps/test/router-outlet/.eslintrc.json b/apps/testing/router-outlet/.eslintrc.json similarity index 100% rename from apps/test/router-outlet/.eslintrc.json rename to apps/testing/router-outlet/.eslintrc.json diff --git a/apps/test/router-outlet/README.md b/apps/testing/router-outlet/README.md similarity index 85% rename from apps/test/router-outlet/README.md rename to apps/testing/router-outlet/README.md index 7bf1d9d..71208a4 100644 --- a/apps/test/router-outlet/README.md +++ b/apps/testing/router-outlet/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-router-outlet +npx nx serve testing-router-outlet ``` ### Documentation and Instruction diff --git a/apps/test/router-outlet/cypress.config.ts b/apps/testing/router-outlet/cypress.config.ts similarity index 100% rename from apps/test/router-outlet/cypress.config.ts rename to apps/testing/router-outlet/cypress.config.ts diff --git a/apps/test/router-outlet/cypress/fixtures/example.json b/apps/testing/router-outlet/cypress/fixtures/example.json similarity index 100% rename from apps/test/router-outlet/cypress/fixtures/example.json rename to apps/testing/router-outlet/cypress/fixtures/example.json diff --git a/apps/test/router-outlet/cypress/support/commands.ts b/apps/testing/router-outlet/cypress/support/commands.ts similarity index 100% rename from apps/test/router-outlet/cypress/support/commands.ts rename to apps/testing/router-outlet/cypress/support/commands.ts diff --git a/apps/test/router-outlet/cypress/support/component-index.html b/apps/testing/router-outlet/cypress/support/component-index.html similarity index 100% rename from apps/test/router-outlet/cypress/support/component-index.html rename to apps/testing/router-outlet/cypress/support/component-index.html diff --git a/apps/test/router-outlet/cypress/support/component.ts b/apps/testing/router-outlet/cypress/support/component.ts similarity index 100% rename from apps/test/router-outlet/cypress/support/component.ts rename to apps/testing/router-outlet/cypress/support/component.ts diff --git a/apps/test/router-outlet/cypress/tsconfig.json b/apps/testing/router-outlet/cypress/tsconfig.json similarity index 100% rename from apps/test/router-outlet/cypress/tsconfig.json rename to apps/testing/router-outlet/cypress/tsconfig.json diff --git a/apps/test/router-outlet/jest.config.ts b/apps/testing/router-outlet/jest.config.ts similarity index 93% rename from apps/test/router-outlet/jest.config.ts rename to apps/testing/router-outlet/jest.config.ts index fa70325..0bca8ae 100644 --- a/apps/test/router-outlet/jest.config.ts +++ b/apps/testing/router-outlet/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-router-outlet', + displayName: 'testing-router-outlet', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], globals: {}, diff --git a/apps/test/router-outlet/project.json b/apps/testing/router-outlet/project.json similarity index 66% rename from apps/test/router-outlet/project.json rename to apps/testing/router-outlet/project.json index a33bb42..be5e9de 100644 --- a/apps/test/router-outlet/project.json +++ b/apps/testing/router-outlet/project.json @@ -1,25 +1,25 @@ { - "name": "test-router-outlet", + "name": "testing-router-outlet", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/router-outlet/src", + "sourceRoot": "apps/testing/router-outlet/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/router-outlet", - "index": "apps/test/router-outlet/src/index.html", - "main": "apps/test/router-outlet/src/main.ts", + "outputPath": "dist/apps/testing/router-outlet", + "index": "apps/testing/router-outlet/src/index.html", + "main": "apps/testing/router-outlet/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/router-outlet/tsconfig.app.json", + "tsConfig": "apps/testing/router-outlet/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/router-outlet/src/favicon.ico", - "apps/test/router-outlet/src/assets" + "apps/testing/router-outlet/src/favicon.ico", + "apps/testing/router-outlet/src/assets" ], - "styles": ["apps/test/router-outlet/src/styles.scss"], + "styles": ["apps/testing/router-outlet/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-router-outlet:build:production" + "browserTarget": "testing-router-outlet:build:production" }, "development": { - "browserTarget": "test-router-outlet:build:development" + "browserTarget": "testing-router-outlet:build:development" } }, "defaultConfiguration": "development" @@ -64,7 +64,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-router-outlet:build" + "browserTarget": "testing-router-outlet:build" } }, "lint": { @@ -72,8 +72,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/router-outlet/**/*.ts", - "apps/test/router-outlet/**/*.html" + "apps/testing/router-outlet/**/*.ts", + "apps/testing/router-outlet/**/*.html" ] } }, @@ -81,17 +81,17 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/router-outlet/jest.config.ts", + "jestConfig": "apps/testing/router-outlet/jest.config.ts", "passWithNoTests": true } }, "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/router-outlet/cypress.config.ts", + "cypressConfig": "apps/testing/router-outlet/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-router-outlet:build" + "devServerTarget": "testing-router-outlet:build" } } }, diff --git a/apps/test/router-outlet/src/app/app.component.cy.ts b/apps/testing/router-outlet/src/app/app.component.cy.ts similarity index 100% rename from apps/test/router-outlet/src/app/app.component.cy.ts rename to apps/testing/router-outlet/src/app/app.component.cy.ts diff --git a/apps/test/router-outlet/src/app/app.component.spec.ts b/apps/testing/router-outlet/src/app/app.component.spec.ts similarity index 100% rename from apps/test/router-outlet/src/app/app.component.spec.ts rename to apps/testing/router-outlet/src/app/app.component.spec.ts diff --git a/apps/test/router-outlet/src/app/app.component.ts b/apps/testing/router-outlet/src/app/app.component.ts similarity index 100% rename from apps/test/router-outlet/src/app/app.component.ts rename to apps/testing/router-outlet/src/app/app.component.ts diff --git a/apps/test/router-outlet/src/app/app.config.ts b/apps/testing/router-outlet/src/app/app.config.ts similarity index 100% rename from apps/test/router-outlet/src/app/app.config.ts rename to apps/testing/router-outlet/src/app/app.config.ts diff --git a/apps/test/router-outlet/src/app/app.routes.ts b/apps/testing/router-outlet/src/app/app.routes.ts similarity index 100% rename from apps/test/router-outlet/src/app/app.routes.ts rename to apps/testing/router-outlet/src/app/app.routes.ts diff --git a/apps/test/router-outlet/src/app/book.guard.ts b/apps/testing/router-outlet/src/app/book.guard.ts similarity index 100% rename from apps/test/router-outlet/src/app/book.guard.ts rename to apps/testing/router-outlet/src/app/book.guard.ts diff --git a/apps/test/router-outlet/src/app/book.model.ts b/apps/testing/router-outlet/src/app/book.model.ts similarity index 100% rename from apps/test/router-outlet/src/app/book.model.ts rename to apps/testing/router-outlet/src/app/book.model.ts diff --git a/apps/test/router-outlet/src/app/no-book-search.component.ts b/apps/testing/router-outlet/src/app/no-book-search.component.ts similarity index 100% rename from apps/test/router-outlet/src/app/no-book-search.component.ts rename to apps/testing/router-outlet/src/app/no-book-search.component.ts diff --git a/apps/test/router-outlet/src/app/search.component.ts b/apps/testing/router-outlet/src/app/search.component.ts similarity index 100% rename from apps/test/router-outlet/src/app/search.component.ts rename to apps/testing/router-outlet/src/app/search.component.ts diff --git a/apps/test/router-outlet/src/app/shelf.component.ts b/apps/testing/router-outlet/src/app/shelf.component.ts similarity index 100% rename from apps/test/router-outlet/src/app/shelf.component.ts rename to apps/testing/router-outlet/src/app/shelf.component.ts diff --git a/apps/test/router-outlet/src/assets/.gitkeep b/apps/testing/router-outlet/src/assets/.gitkeep similarity index 100% rename from apps/test/router-outlet/src/assets/.gitkeep rename to apps/testing/router-outlet/src/assets/.gitkeep diff --git a/apps/test/router-outlet/src/favicon.ico b/apps/testing/router-outlet/src/favicon.ico similarity index 100% rename from apps/test/router-outlet/src/favicon.ico rename to apps/testing/router-outlet/src/favicon.ico diff --git a/apps/test/router-outlet/src/index.html b/apps/testing/router-outlet/src/index.html similarity index 100% rename from apps/test/router-outlet/src/index.html rename to apps/testing/router-outlet/src/index.html diff --git a/apps/test/router-outlet/src/main.ts b/apps/testing/router-outlet/src/main.ts similarity index 100% rename from apps/test/router-outlet/src/main.ts rename to apps/testing/router-outlet/src/main.ts diff --git a/apps/test/router-outlet/src/styles.scss b/apps/testing/router-outlet/src/styles.scss similarity index 100% rename from apps/test/router-outlet/src/styles.scss rename to apps/testing/router-outlet/src/styles.scss diff --git a/apps/test/router-outlet/src/test-setup.ts b/apps/testing/router-outlet/src/test-setup.ts similarity index 100% rename from apps/test/router-outlet/src/test-setup.ts rename to apps/testing/router-outlet/src/test-setup.ts diff --git a/apps/test/router-outlet/tsconfig.app.json b/apps/testing/router-outlet/tsconfig.app.json similarity index 100% rename from apps/test/router-outlet/tsconfig.app.json rename to apps/testing/router-outlet/tsconfig.app.json diff --git a/apps/test/router-outlet/tsconfig.editor.json b/apps/testing/router-outlet/tsconfig.editor.json similarity index 100% rename from apps/test/router-outlet/tsconfig.editor.json rename to apps/testing/router-outlet/tsconfig.editor.json diff --git a/apps/test/router-outlet/tsconfig.json b/apps/testing/router-outlet/tsconfig.json similarity index 100% rename from apps/test/router-outlet/tsconfig.json rename to apps/testing/router-outlet/tsconfig.json diff --git a/apps/test/router-outlet/tsconfig.spec.json b/apps/testing/router-outlet/tsconfig.spec.json similarity index 100% rename from apps/test/router-outlet/tsconfig.spec.json rename to apps/testing/router-outlet/tsconfig.spec.json diff --git a/apps/test/table/.eslintrc.json b/apps/testing/table/.eslintrc.json similarity index 100% rename from apps/test/table/.eslintrc.json rename to apps/testing/table/.eslintrc.json diff --git a/apps/test/table/README.md b/apps/testing/table/README.md similarity index 70% rename from apps/test/table/README.md rename to apps/testing/table/README.md index 6ccd8a1..f5e232e 100644 --- a/apps/test/table/README.md +++ b/apps/testing/table/README.md @@ -8,13 +8,13 @@ NOT IMPLEMENTED YET @@ -23,9 +23,9 @@ I created some `it` blocks but feel free to add more test if you like to. --> 1. Fork the project 2. clone it 3. npm ci -4. `npx nx serve test-table` to play with the application -5. `npx nx test test-table` to test your application with Testing Library -6. `npx nx component-test test-table --watch` to test your application with Cypress +4. `npx nx serve testing-table` to play with the application +5. `npx nx test testing-table` to test your application with Testing Library +6. `npx nx component-test testing-table --watch` to test your application with Cypress 7. _...work on it_ 8. Commit your work 9. Submit a PR with a title beginning with **Answer:22** that I will review and other dev can review. diff --git a/apps/test/table/cypress.config.ts b/apps/testing/table/cypress.config.ts similarity index 100% rename from apps/test/table/cypress.config.ts rename to apps/testing/table/cypress.config.ts diff --git a/apps/test/table/cypress/fixtures/example.json b/apps/testing/table/cypress/fixtures/example.json similarity index 100% rename from apps/test/table/cypress/fixtures/example.json rename to apps/testing/table/cypress/fixtures/example.json diff --git a/apps/test/table/cypress/support/commands.ts b/apps/testing/table/cypress/support/commands.ts similarity index 100% rename from apps/test/table/cypress/support/commands.ts rename to apps/testing/table/cypress/support/commands.ts diff --git a/apps/test/table/cypress/support/component-index.html b/apps/testing/table/cypress/support/component-index.html similarity index 100% rename from apps/test/table/cypress/support/component-index.html rename to apps/testing/table/cypress/support/component-index.html diff --git a/apps/test/table/cypress/support/component.ts b/apps/testing/table/cypress/support/component.ts similarity index 100% rename from apps/test/table/cypress/support/component.ts rename to apps/testing/table/cypress/support/component.ts diff --git a/apps/test/table/cypress/tsconfig.json b/apps/testing/table/cypress/tsconfig.json similarity index 100% rename from apps/test/table/cypress/tsconfig.json rename to apps/testing/table/cypress/tsconfig.json diff --git a/apps/test/forms/jest.config.ts b/apps/testing/table/jest.config.ts similarity index 95% rename from apps/test/forms/jest.config.ts rename to apps/testing/table/jest.config.ts index c757ab8..56b0e7d 100644 --- a/apps/test/forms/jest.config.ts +++ b/apps/testing/table/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-forms', + displayName: 'testing-table', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { diff --git a/apps/test/table/project.json b/apps/testing/table/project.json similarity index 71% rename from apps/test/table/project.json rename to apps/testing/table/project.json index c43b56b..e77260e 100644 --- a/apps/test/table/project.json +++ b/apps/testing/table/project.json @@ -1,25 +1,25 @@ { - "name": "test-table", + "name": "testing-table", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/table/src", + "sourceRoot": "apps/testing/table/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/table", - "index": "apps/test/table/src/index.html", - "main": "apps/test/table/src/main.ts", + "outputPath": "dist/apps/testing/table", + "index": "apps/testing/table/src/index.html", + "main": "apps/testing/table/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/table/tsconfig.app.json", + "tsConfig": "apps/testing/table/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/table/src/favicon.ico", - "apps/test/table/src/assets" + "apps/testing/table/src/favicon.ico", + "apps/testing/table/src/assets" ], - "styles": ["apps/test/table/src/styles.scss"], + "styles": ["apps/testing/table/src/styles.scss"], "scripts": [], "allowedCommonJsDependencies": ["seedrandom"] }, @@ -54,10 +54,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-table:build:production" + "browserTarget": "testing-table:build:production" }, "development": { - "browserTarget": "test-table:build:development" + "browserTarget": "testing-table:build:development" } }, "defaultConfiguration": "development" @@ -65,7 +65,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-table:build" + "browserTarget": "testing-table:build" } }, "lint": { @@ -73,8 +73,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/table/**/*.ts", - "apps/test/table/**/*.html" + "apps/testing/table/**/*.ts", + "apps/testing/table/**/*.html" ] } }, @@ -82,7 +82,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/table/jest.config.ts", + "jestConfig": "apps/testing/table/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -95,10 +95,10 @@ "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/table/cypress.config.ts", + "cypressConfig": "apps/testing/table/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-table:build" + "devServerTarget": "testing-table:build" } } }, diff --git a/apps/test/table/src/app/app.component.ts b/apps/testing/table/src/app/app.component.ts similarity index 100% rename from apps/test/table/src/app/app.component.ts rename to apps/testing/table/src/app/app.component.ts diff --git a/apps/test/table/src/app/table.component.spec.ts b/apps/testing/table/src/app/table.component.spec.ts similarity index 100% rename from apps/test/table/src/app/table.component.spec.ts rename to apps/testing/table/src/app/table.component.spec.ts diff --git a/apps/test/table/src/app/table.component.ts b/apps/testing/table/src/app/table.component.ts similarity index 100% rename from apps/test/table/src/app/table.component.ts rename to apps/testing/table/src/app/table.component.ts diff --git a/apps/test/table/src/assets/.gitkeep b/apps/testing/table/src/assets/.gitkeep similarity index 100% rename from apps/test/table/src/assets/.gitkeep rename to apps/testing/table/src/assets/.gitkeep diff --git a/apps/test/table/src/favicon.ico b/apps/testing/table/src/favicon.ico similarity index 100% rename from apps/test/table/src/favicon.ico rename to apps/testing/table/src/favicon.ico diff --git a/apps/test/table/src/index.html b/apps/testing/table/src/index.html similarity index 100% rename from apps/test/table/src/index.html rename to apps/testing/table/src/index.html diff --git a/apps/test/table/src/main.ts b/apps/testing/table/src/main.ts similarity index 100% rename from apps/test/table/src/main.ts rename to apps/testing/table/src/main.ts diff --git a/apps/test/table/src/styles.scss b/apps/testing/table/src/styles.scss similarity index 100% rename from apps/test/table/src/styles.scss rename to apps/testing/table/src/styles.scss diff --git a/apps/test/table/src/test-setup.ts b/apps/testing/table/src/test-setup.ts similarity index 100% rename from apps/test/table/src/test-setup.ts rename to apps/testing/table/src/test-setup.ts diff --git a/apps/test/table/tailwind.config.js b/apps/testing/table/tailwind.config.js similarity index 100% rename from apps/test/table/tailwind.config.js rename to apps/testing/table/tailwind.config.js diff --git a/apps/test/table/tsconfig.app.json b/apps/testing/table/tsconfig.app.json similarity index 100% rename from apps/test/table/tsconfig.app.json rename to apps/testing/table/tsconfig.app.json diff --git a/apps/test/table/tsconfig.editor.json b/apps/testing/table/tsconfig.editor.json similarity index 100% rename from apps/test/table/tsconfig.editor.json rename to apps/testing/table/tsconfig.editor.json diff --git a/apps/test/table/tsconfig.json b/apps/testing/table/tsconfig.json similarity index 100% rename from apps/test/table/tsconfig.json rename to apps/testing/table/tsconfig.json diff --git a/apps/test/table/tsconfig.spec.json b/apps/testing/table/tsconfig.spec.json similarity index 100% rename from apps/test/table/tsconfig.spec.json rename to apps/testing/table/tsconfig.spec.json diff --git a/apps/test/todos-list/.eslintrc.json b/apps/testing/todos-list/.eslintrc.json similarity index 100% rename from apps/test/todos-list/.eslintrc.json rename to apps/testing/todos-list/.eslintrc.json diff --git a/apps/test/todos-list/README.md b/apps/testing/todos-list/README.md similarity index 87% rename from apps/test/todos-list/README.md rename to apps/testing/todos-list/README.md index 0495bd8..2adce88 100644 --- a/apps/test/todos-list/README.md +++ b/apps/testing/todos-list/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve test-todos-list +npx nx serve testing-todos-list ``` ### Documentation and Instruction diff --git a/apps/test/todos-list/cypress.config.ts b/apps/testing/todos-list/cypress.config.ts similarity index 100% rename from apps/test/todos-list/cypress.config.ts rename to apps/testing/todos-list/cypress.config.ts diff --git a/apps/test/todos-list/cypress/fixtures/example.json b/apps/testing/todos-list/cypress/fixtures/example.json similarity index 100% rename from apps/test/todos-list/cypress/fixtures/example.json rename to apps/testing/todos-list/cypress/fixtures/example.json diff --git a/apps/test/todos-list/cypress/support/commands.ts b/apps/testing/todos-list/cypress/support/commands.ts similarity index 100% rename from apps/test/todos-list/cypress/support/commands.ts rename to apps/testing/todos-list/cypress/support/commands.ts diff --git a/apps/test/todos-list/cypress/support/component-index.html b/apps/testing/todos-list/cypress/support/component-index.html similarity index 100% rename from apps/test/todos-list/cypress/support/component-index.html rename to apps/testing/todos-list/cypress/support/component-index.html diff --git a/apps/test/todos-list/cypress/support/component.ts b/apps/testing/todos-list/cypress/support/component.ts similarity index 100% rename from apps/test/todos-list/cypress/support/component.ts rename to apps/testing/todos-list/cypress/support/component.ts diff --git a/apps/test/todos-list/cypress/tsconfig.json b/apps/testing/todos-list/cypress/tsconfig.json similarity index 100% rename from apps/test/todos-list/cypress/tsconfig.json rename to apps/testing/todos-list/cypress/tsconfig.json diff --git a/apps/test/input-output/jest.config.ts b/apps/testing/todos-list/jest.config.ts similarity index 94% rename from apps/test/input-output/jest.config.ts rename to apps/testing/todos-list/jest.config.ts index 33b7753..eb61074 100644 --- a/apps/test/input-output/jest.config.ts +++ b/apps/testing/todos-list/jest.config.ts @@ -1,6 +1,6 @@ /* eslint-disable */ export default { - displayName: 'test-input-output', + displayName: 'testing-todos-list', preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { diff --git a/apps/test/todos-list/project.json b/apps/testing/todos-list/project.json similarity index 70% rename from apps/test/todos-list/project.json rename to apps/testing/todos-list/project.json index f9e9944..381891e 100644 --- a/apps/test/todos-list/project.json +++ b/apps/testing/todos-list/project.json @@ -1,26 +1,26 @@ { - "name": "test-todos-list", + "name": "testing-todos-list", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/test/todos-list/src", + "sourceRoot": "apps/testing/todos-list/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/test/todos-list", - "index": "apps/test/todos-list/src/index.html", - "main": "apps/test/todos-list/src/main.ts", + "outputPath": "dist/apps/testing/todos-list", + "index": "apps/testing/todos-list/src/index.html", + "main": "apps/testing/todos-list/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/test/todos-list/tsconfig.app.json", + "tsConfig": "apps/testing/todos-list/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/test/todos-list/src/favicon.ico", - "apps/test/todos-list/src/assets" + "apps/testing/todos-list/src/favicon.ico", + "apps/testing/todos-list/src/assets" ], "styles": [ - "apps/test/todos-list/src/styles.scss", + "apps/testing/todos-list/src/styles.scss", "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css" ], "scripts": [] @@ -56,10 +56,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "test-todos-list:build:production" + "browserTarget": "testing-todos-list:build:production" }, "development": { - "browserTarget": "test-todos-list:build:development" + "browserTarget": "testing-todos-list:build:development" } }, "defaultConfiguration": "development" @@ -67,7 +67,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "test-todos-list:build" + "browserTarget": "testing-todos-list:build" } }, "lint": { @@ -75,8 +75,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/test/todos-list/**/*.ts", - "apps/test/todos-list/**/*.html" + "apps/testing/todos-list/**/*.ts", + "apps/testing/todos-list/**/*.html" ] } }, @@ -84,7 +84,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/test/todos-list/jest.config.ts", + "jestConfig": "apps/testing/todos-list/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -97,10 +97,10 @@ "component-test": { "executor": "@nx/cypress:cypress", "options": { - "cypressConfig": "apps/test/todos-list/cypress.config.ts", + "cypressConfig": "apps/testing/todos-list/cypress.config.ts", "testingType": "component", "skipServe": true, - "devServerTarget": "test-todos-list:build" + "devServerTarget": "testing-todos-list:build" } } }, diff --git a/apps/test/todos-list/src/app/app.component.ts b/apps/testing/todos-list/src/app/app.component.ts similarity index 100% rename from apps/test/todos-list/src/app/app.component.ts rename to apps/testing/todos-list/src/app/app.component.ts diff --git a/apps/test/todos-list/src/app/app.config.ts b/apps/testing/todos-list/src/app/app.config.ts similarity index 100% rename from apps/test/todos-list/src/app/app.config.ts rename to apps/testing/todos-list/src/app/app.config.ts diff --git a/apps/test/todos-list/src/app/app.route.ts b/apps/testing/todos-list/src/app/app.route.ts similarity index 100% rename from apps/test/todos-list/src/app/app.route.ts rename to apps/testing/todos-list/src/app/app.route.ts diff --git a/apps/test/todos-list/src/app/backend.service.ts b/apps/testing/todos-list/src/app/backend.service.ts similarity index 100% rename from apps/test/todos-list/src/app/backend.service.ts rename to apps/testing/todos-list/src/app/backend.service.ts diff --git a/apps/test/todos-list/src/app/detail/detail.component.ts b/apps/testing/todos-list/src/app/detail/detail.component.ts similarity index 100% rename from apps/test/todos-list/src/app/detail/detail.component.ts rename to apps/testing/todos-list/src/app/detail/detail.component.ts diff --git a/apps/test/todos-list/src/app/detail/detail.store.ts b/apps/testing/todos-list/src/app/detail/detail.store.ts similarity index 100% rename from apps/test/todos-list/src/app/detail/detail.store.ts rename to apps/testing/todos-list/src/app/detail/detail.store.ts diff --git a/apps/test/todos-list/src/app/list/list.component.spec.ts b/apps/testing/todos-list/src/app/list/list.component.spec.ts similarity index 100% rename from apps/test/todos-list/src/app/list/list.component.spec.ts rename to apps/testing/todos-list/src/app/list/list.component.spec.ts diff --git a/apps/test/todos-list/src/app/list/list.component.ts b/apps/testing/todos-list/src/app/list/list.component.ts similarity index 100% rename from apps/test/todos-list/src/app/list/list.component.ts rename to apps/testing/todos-list/src/app/list/list.component.ts diff --git a/apps/test/todos-list/src/app/list/ticket.store.spec.ts b/apps/testing/todos-list/src/app/list/ticket.store.spec.ts similarity index 100% rename from apps/test/todos-list/src/app/list/ticket.store.spec.ts rename to apps/testing/todos-list/src/app/list/ticket.store.spec.ts diff --git a/apps/test/todos-list/src/app/list/ticket.store.ts b/apps/testing/todos-list/src/app/list/ticket.store.ts similarity index 100% rename from apps/test/todos-list/src/app/list/ticket.store.ts rename to apps/testing/todos-list/src/app/list/ticket.store.ts diff --git a/apps/test/todos-list/src/app/list/ui/add.component.ts b/apps/testing/todos-list/src/app/list/ui/add.component.ts similarity index 100% rename from apps/test/todos-list/src/app/list/ui/add.component.ts rename to apps/testing/todos-list/src/app/list/ui/add.component.ts diff --git a/apps/test/todos-list/src/app/list/ui/row.component.spec.ts b/apps/testing/todos-list/src/app/list/ui/row.component.spec.ts similarity index 100% rename from apps/test/todos-list/src/app/list/ui/row.component.spec.ts rename to apps/testing/todos-list/src/app/list/ui/row.component.spec.ts diff --git a/apps/test/todos-list/src/app/list/ui/row.component.ts b/apps/testing/todos-list/src/app/list/ui/row.component.ts similarity index 100% rename from apps/test/todos-list/src/app/list/ui/row.component.ts rename to apps/testing/todos-list/src/app/list/ui/row.component.ts diff --git a/apps/test/todos-list/src/assets/.gitkeep b/apps/testing/todos-list/src/assets/.gitkeep similarity index 100% rename from apps/test/todos-list/src/assets/.gitkeep rename to apps/testing/todos-list/src/assets/.gitkeep diff --git a/apps/test/todos-list/src/favicon.ico b/apps/testing/todos-list/src/favicon.ico similarity index 100% rename from apps/test/todos-list/src/favicon.ico rename to apps/testing/todos-list/src/favicon.ico diff --git a/apps/test/todos-list/src/index.html b/apps/testing/todos-list/src/index.html similarity index 100% rename from apps/test/todos-list/src/index.html rename to apps/testing/todos-list/src/index.html diff --git a/apps/test/todos-list/src/main.ts b/apps/testing/todos-list/src/main.ts similarity index 100% rename from apps/test/todos-list/src/main.ts rename to apps/testing/todos-list/src/main.ts diff --git a/apps/test/todos-list/src/styles.scss b/apps/testing/todos-list/src/styles.scss similarity index 100% rename from apps/test/todos-list/src/styles.scss rename to apps/testing/todos-list/src/styles.scss diff --git a/apps/test/todos-list/src/test-setup.ts b/apps/testing/todos-list/src/test-setup.ts similarity index 100% rename from apps/test/todos-list/src/test-setup.ts rename to apps/testing/todos-list/src/test-setup.ts diff --git a/apps/test/todos-list/tailwind.config.js b/apps/testing/todos-list/tailwind.config.js similarity index 100% rename from apps/test/todos-list/tailwind.config.js rename to apps/testing/todos-list/tailwind.config.js diff --git a/apps/test/todos-list/tsconfig.app.json b/apps/testing/todos-list/tsconfig.app.json similarity index 100% rename from apps/test/todos-list/tsconfig.app.json rename to apps/testing/todos-list/tsconfig.app.json diff --git a/apps/test/todos-list/tsconfig.editor.json b/apps/testing/todos-list/tsconfig.editor.json similarity index 100% rename from apps/test/todos-list/tsconfig.editor.json rename to apps/testing/todos-list/tsconfig.editor.json diff --git a/apps/test/todos-list/tsconfig.json b/apps/testing/todos-list/tsconfig.json similarity index 100% rename from apps/test/todos-list/tsconfig.json rename to apps/testing/todos-list/tsconfig.json diff --git a/apps/test/todos-list/tsconfig.spec.json b/apps/testing/todos-list/tsconfig.spec.json similarity index 100% rename from apps/test/todos-list/tsconfig.spec.json rename to apps/testing/todos-list/tsconfig.spec.json diff --git a/docs/src/content/docs/challenges/testing/17-router.md b/docs/src/content/docs/challenges/testing/17-router.md index 1a0aaeb..12e0611 100644 --- a/docs/src/content/docs/challenges/testing/17-router.md +++ b/docs/src/content/docs/challenges/testing/17-router.md @@ -3,7 +3,7 @@ title: 🟠 Router description: Challenge 17 is about testing the router author: Thomas Laforge challengeNumber: 17 -command: test-router-outlet +command: testing-router-outlet sidebar: order: 108 --- @@ -12,9 +12,9 @@ sidebar: We have a functional application that lists available books for borrowing inside a library. If the book you searched for is available, you will be directed to the corresponding book(s), otherwise, you will end up on an error page. -The file named `app.component.spec.ts` will let you test your application using Testing Library. To run the test suits, you need to run `npx nx test test-router-outlet`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. +The file named `app.component.spec.ts` will let you test your application using Testing Library. To run the test suits, you need to run `npx nx test testing-router-outlet`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. -For testing cypress, you will execute your test inside the `app.component.cy.ts` and run `npx nx component-test test-router-outlet` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. +For testing cypress, you will execute your test inside the `app.component.cy.ts` and run `npx nx component-test testing-router-outlet` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. # Statement diff --git a/docs/src/content/docs/challenges/testing/18-nested-comp.md b/docs/src/content/docs/challenges/testing/18-nested-comp.md index 113b22e..02c539f 100644 --- a/docs/src/content/docs/challenges/testing/18-nested-comp.md +++ b/docs/src/content/docs/challenges/testing/18-nested-comp.md @@ -3,7 +3,7 @@ title: 🟠 Nested Components description: Challenge 18 is about testing nested components author: Thomas Laforge challengeNumber: 18 -command: test-nested +command: testing-nested sidebar: order: 109 --- @@ -14,11 +14,11 @@ We have a small application that sends a title, typed into an input to a fake ba If the title is correctly typed, you can send the request otherwise you receive an error and the request is not sent. The application is created with nested components. `ChildComponent` is the container that includes four components: `ResultComponent`, `ButtonComponent`, `InputComponent` and `ErrorComponent`. However since we are testing our component as a black box, the architecture of our components doesn't change anything. You can create your test, change how the components are structured, and your tests should still pass. That's the goal of integration tests. Never test internal implementation details!!!. -You can play with it by running : `npx nx serve test-nested`. +You can play with it by running : `npx nx serve testing-nested`. -The file named `child.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test test-nested`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. +The file named `child.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test testing-nested`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. -For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test test-nested` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. +For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test testing-nested` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. # Statement diff --git a/docs/src/content/docs/challenges/testing/19-input-output.md b/docs/src/content/docs/challenges/testing/19-input-output.md index d08acba..b461f4e 100644 --- a/docs/src/content/docs/challenges/testing/19-input-output.md +++ b/docs/src/content/docs/challenges/testing/19-input-output.md @@ -3,7 +3,7 @@ title: 🟠 Input Output description: Challenge 19 is about testing inputs and ouputs author: Thomas Laforge challengeNumber: 19 -command: test-input-output +command: testing-input-output sidebar: order: 110 --- @@ -12,11 +12,11 @@ sidebar: We have a small counter application that increments or decrements a number. The `CounterComponent` takes an initial value as an `@Input` and emits the result of the counter as an `@Output` when we click on the **Send** button. Since we are testing our component as a black box, we only have access to our inputs and listen to the output values. We should not rely on any internal implementation details!!! -You can play with it by running : `npx nx serve test-input-output`. +You can play with it by running : `npx nx serve testing-input-output`. -The file named `counter.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test test-input-output`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. +The file named `counter.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test testing-input-output`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. -For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test test-input-output` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. +For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test testing-input-output` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. # Statement diff --git a/docs/src/content/docs/challenges/testing/20-modal.md b/docs/src/content/docs/challenges/testing/20-modal.md index 524ed88..cddedd1 100644 --- a/docs/src/content/docs/challenges/testing/20-modal.md +++ b/docs/src/content/docs/challenges/testing/20-modal.md @@ -3,7 +3,7 @@ title: 🟠 Modal description: Challenge 20 is about testing modals author: Thomas Laforge challengeNumber: 20 -command: test-modal +command: testing-modal sidebar: order: 111 --- @@ -16,11 +16,11 @@ In the confirmation modal, if you click the **Confirm** button, a message confir The goal of this challenge is to test the dialogs inside your application. To do so, we will test the full application like an end-to-end test will do. This means, we will test the `AppComponent` as a black box and react to events on the page. No internal details should be tested. The difference between an e2e test and integration test is that we will mock all API calls. _(All http requests are faked inside this application, but this would not be the case in a real entreprice application.)_ -You can play with it by running : `npx nx serve test-modal`. +You can play with it by running : `npx nx serve testing-modal`. -The file named `app.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test test-modal`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. +The file named `app.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test testing-modal`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. -For testing cypress, you will execute your test inside the `app.component.cy.ts` and run `npx nx component-test test-modal` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. +For testing cypress, you will execute your test inside the `app.component.cy.ts` and run `npx nx component-test testing-modal` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. # Statement diff --git a/docs/src/content/docs/challenges/testing/23-harness.md b/docs/src/content/docs/challenges/testing/23-harness.md index 4cfc351..131152d 100644 --- a/docs/src/content/docs/challenges/testing/23-harness.md +++ b/docs/src/content/docs/challenges/testing/23-harness.md @@ -3,7 +3,7 @@ title: 🟢 Harness description: Challenge 23 is about testing with component harnesses author: Thomas Laforge challengeNumber: 23 -command: test-harness +command: testing-harness sidebar: order: 9 --- diff --git a/docs/src/content/docs/challenges/testing/24-harness-creation.md b/docs/src/content/docs/challenges/testing/24-harness-creation.md index 84171f3..cde71a0 100644 --- a/docs/src/content/docs/challenges/testing/24-harness-creation.md +++ b/docs/src/content/docs/challenges/testing/24-harness-creation.md @@ -3,7 +3,7 @@ title: 🟠 Harness Creation description: Challenge 24 is about creating a component harness. author: Thomas Laforge challengeNumber: 24 -command: test-create-harness +command: testing-create-harness sidebar: order: 112 --- diff --git a/docs/src/content/docs/challenges/testing/28-checkbox.md b/docs/src/content/docs/challenges/testing/28-checkbox.md index 9836122..0e7ef5e 100644 --- a/docs/src/content/docs/challenges/testing/28-checkbox.md +++ b/docs/src/content/docs/challenges/testing/28-checkbox.md @@ -3,7 +3,7 @@ title: 🟢 Checkbox description: Challenge 28 is about testing a simple checkbox author: Thomas Laforge challengeNumber: 28 -command: test-checkbox +command: testing-checkbox sidebar: order: 10 --- diff --git a/docs/src/content/docs/challenges/testing/29-real-application.md b/docs/src/content/docs/challenges/testing/29-real-application.md index f4d21d4..f740df3 100644 --- a/docs/src/content/docs/challenges/testing/29-real-application.md +++ b/docs/src/content/docs/challenges/testing/29-real-application.md @@ -3,7 +3,7 @@ title: 🔴 Real-life Application description: Challenge 29 is about testing a real-life application author: Thomas Laforge challengeNumber: 29 -command: test-todos-list +command: testing-todos-list sidebar: order: 205 --- @@ -18,11 +18,11 @@ In this challenge, you will write tests for the `ListComponent`, which represent Handling asynchronous tasks will be particularly challenging. It's important not to introduce any explicit waits in your tests, as this would introduce unnecessary delays. Instead, it's better to look for an element that needs to appear or disappear from the DOM. In this case, the test will naturally wait for the correct period of time, as the waits are already implemented within both libraries. Take advantage of these built-in functionalities to create efficient and reliable tests. -You can play with it by running : `npx nx serve test-todos-list`. +You can play with it by running : `npx nx serve testing-todos-list`. -To run Testing Library test suits, you need to run `npx nx test test-input-output`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. +To run Testing Library test suits, you need to run `npx nx test testing-todos-list`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks. -For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test test-input-output` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. +For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test testing-todos-list` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode. # Statement