diff --git a/apps/testing-harness/.eslintrc.json b/apps/test/harness/.eslintrc.json similarity index 94% rename from apps/testing-harness/.eslintrc.json rename to apps/test/harness/.eslintrc.json index b428c22..bf8df14 100644 --- a/apps/testing-harness/.eslintrc.json +++ b/apps/test/harness/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../.eslintrc.json"], + "extends": ["../../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/apps/testing-harness/README.md b/apps/test/harness/README.md similarity index 87% rename from apps/testing-harness/README.md rename to apps/test/harness/README.md index 15d9b51..7740c05 100644 --- a/apps/testing-harness/README.md +++ b/apps/test/harness/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve testing-harness +npx nx serve test-harness ``` ### Documentation and Instruction diff --git a/apps/testing-harness/jest.config.ts b/apps/test/harness/jest.config.ts similarity index 89% rename from apps/testing-harness/jest.config.ts rename to apps/test/harness/jest.config.ts index 1a72238..c7beb63 100644 --- a/apps/testing-harness/jest.config.ts +++ b/apps/test/harness/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'testing-harness', - preset: '../../jest.preset.js', + displayName: 'test-harness', + preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], transform: { '^.+\\.(ts|mjs|js|html)$': [ diff --git a/apps/testing-harness/project.json b/apps/test/harness/project.json similarity index 68% rename from apps/testing-harness/project.json rename to apps/test/harness/project.json index 3b93c76..4c39ba5 100644 --- a/apps/testing-harness/project.json +++ b/apps/test/harness/project.json @@ -1,25 +1,25 @@ { - "name": "testing-harness", - "$schema": "../../node_modules/nx/schemas/project-schema.json", + "name": "test-harness", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "prefix": "app", - "sourceRoot": "apps/testing-harness/src", + "sourceRoot": "apps/test/harness/src", "tags": [], "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/testing-harness", - "index": "apps/testing-harness/src/index.html", - "main": "apps/testing-harness/src/main.ts", + "outputPath": "dist/apps/test/harness", + "index": "apps/test/harness/src/index.html", + "main": "apps/test/harness/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/testing-harness/tsconfig.app.json", + "tsConfig": "apps/test/harness/tsconfig.app.json", "assets": [ - "apps/testing-harness/src/favicon.ico", - "apps/testing-harness/src/assets" + "apps/test/harness/src/favicon.ico", + "apps/test/harness/src/assets" ], - "styles": ["apps/testing-harness/src/styles.scss"], + "styles": ["apps/test/harness/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "testing-harness:build:production" + "browserTarget": "test-harness:build:production" }, "development": { - "browserTarget": "testing-harness:build:development" + "browserTarget": "test-harness:build:development" } }, "defaultConfiguration": "development" @@ -64,14 +64,14 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "testing-harness:build" + "browserTarget": "test-harness:build" } }, "test": { "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/testing-harness/jest.config.ts", + "jestConfig": "apps/test/harness/jest.config.ts", "passWithNoTests": true }, "configurations": { @@ -86,8 +86,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/testing-harness/**/*.ts", - "apps/testing-harness/**/*.html" + "apps/test/harness/**/*.ts", + "apps/test/harness/**/*.html" ] } } diff --git a/apps/testing-harness/src/app/app.component.ts b/apps/test/harness/src/app/app.component.ts similarity index 100% rename from apps/testing-harness/src/app/app.component.ts rename to apps/test/harness/src/app/app.component.ts diff --git a/apps/testing-harness/src/app/app.config.ts b/apps/test/harness/src/app/app.config.ts similarity index 100% rename from apps/testing-harness/src/app/app.config.ts rename to apps/test/harness/src/app/app.config.ts diff --git a/apps/testing-harness/src/app/child.component.spec.ts b/apps/test/harness/src/app/child.component.spec.ts similarity index 100% rename from apps/testing-harness/src/app/child.component.spec.ts rename to apps/test/harness/src/app/child.component.spec.ts diff --git a/apps/testing-harness/src/app/child.component.ts b/apps/test/harness/src/app/child.component.ts similarity index 100% rename from apps/testing-harness/src/app/child.component.ts rename to apps/test/harness/src/app/child.component.ts diff --git a/apps/testing-harness/src/assets/.gitkeep b/apps/test/harness/src/assets/.gitkeep similarity index 100% rename from apps/testing-harness/src/assets/.gitkeep rename to apps/test/harness/src/assets/.gitkeep diff --git a/apps/testing-harness/src/favicon.ico b/apps/test/harness/src/favicon.ico similarity index 100% rename from apps/testing-harness/src/favicon.ico rename to apps/test/harness/src/favicon.ico diff --git a/apps/testing-harness/src/index.html b/apps/test/harness/src/index.html similarity index 100% rename from apps/testing-harness/src/index.html rename to apps/test/harness/src/index.html diff --git a/apps/testing-harness/src/main.ts b/apps/test/harness/src/main.ts similarity index 100% rename from apps/testing-harness/src/main.ts rename to apps/test/harness/src/main.ts diff --git a/apps/testing-harness/src/styles.scss b/apps/test/harness/src/styles.scss similarity index 100% rename from apps/testing-harness/src/styles.scss rename to apps/test/harness/src/styles.scss diff --git a/apps/testing-harness/src/test-setup.ts b/apps/test/harness/src/test-setup.ts similarity index 100% rename from apps/testing-harness/src/test-setup.ts rename to apps/test/harness/src/test-setup.ts diff --git a/apps/testing-harness/tailwind.config.js b/apps/test/harness/tailwind.config.js similarity index 100% rename from apps/testing-harness/tailwind.config.js rename to apps/test/harness/tailwind.config.js diff --git a/apps/testing-harness/tsconfig.app.json b/apps/test/harness/tsconfig.app.json similarity index 84% rename from apps/testing-harness/tsconfig.app.json rename to apps/test/harness/tsconfig.app.json index fff4a41..5822042 100644 --- a/apps/testing-harness/tsconfig.app.json +++ b/apps/test/harness/tsconfig.app.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "types": [] }, "files": ["src/main.ts"], diff --git a/apps/testing-harness/tsconfig.editor.json b/apps/test/harness/tsconfig.editor.json similarity index 100% rename from apps/testing-harness/tsconfig.editor.json rename to apps/test/harness/tsconfig.editor.json diff --git a/apps/testing-harness/tsconfig.json b/apps/test/harness/tsconfig.json similarity index 94% rename from apps/testing-harness/tsconfig.json rename to apps/test/harness/tsconfig.json index a91d453..4e4cd74 100644 --- a/apps/testing-harness/tsconfig.json +++ b/apps/test/harness/tsconfig.json @@ -22,7 +22,7 @@ "path": "./tsconfig.spec.json" } ], - "extends": "../../tsconfig.base.json", + "extends": "../../../tsconfig.base.json", "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, diff --git a/apps/testing-harness/tsconfig.spec.json b/apps/test/harness/tsconfig.spec.json similarity index 89% rename from apps/testing-harness/tsconfig.spec.json rename to apps/test/harness/tsconfig.spec.json index 6a6661c..758c120 100644 --- a/apps/testing-harness/tsconfig.spec.json +++ b/apps/test/harness/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "module": "commonjs", "target": "es2016", "types": ["jest", "node", "@testing-library/jest-dom"] diff --git a/docs/src/content/docs/challenges/testing/23-harness.md b/docs/src/content/docs/challenges/testing/23-harness.md index 131152d..4cfc351 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: testing-harness +command: test-harness sidebar: order: 9 ---