feat(move): move lib to test

This commit is contained in:
thomas
2023-10-17 22:59:07 +02:00
parent fc6de28091
commit 2e0c7f61cb
19 changed files with 26 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
{
"extends": ["../../.eslintrc.json"],
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{

View File

@@ -5,7 +5,7 @@
### Run Application
```bash
npx nx serve testing-checkbox
npx nx serve test-checkbox
```
### Documentation and Instruction

View File

@@ -1,9 +1,9 @@
/* eslint-disable */
export default {
displayName: 'testing-checkbox',
preset: '../../jest.preset.js',
displayName: 'test-checkbox',
preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: '../../coverage/apps/testing-checkbox',
coverageDirectory: '../../../coverage/apps/test/checkbox',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',

View File

@@ -1,25 +1,25 @@
{
"name": "testing-checkbox",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "test-checkbox",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"prefix": "app",
"sourceRoot": "apps/testing-checkbox/src",
"sourceRoot": "apps/test/checkbox/src",
"tags": [],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/testing-checkbox",
"index": "apps/testing-checkbox/src/index.html",
"main": "apps/testing-checkbox/src/main.ts",
"outputPath": "dist/apps/test/checkbox",
"index": "apps/test/checkbox/src/index.html",
"main": "apps/test/checkbox/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "apps/testing-checkbox/tsconfig.app.json",
"tsConfig": "apps/test/checkbox/tsconfig.app.json",
"assets": [
"apps/testing-checkbox/src/favicon.ico",
"apps/testing-checkbox/src/assets"
"apps/test/checkbox/src/favicon.ico",
"apps/test/checkbox/src/assets"
],
"styles": ["apps/testing-checkbox/src/styles.scss"],
"styles": ["apps/test/checkbox/src/styles.scss"],
"scripts": []
},
"configurations": {
@@ -53,10 +53,10 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "testing-checkbox:build:production"
"browserTarget": "test-checkbox:build:production"
},
"development": {
"browserTarget": "testing-checkbox:build:development"
"browserTarget": "test-checkbox:build:development"
}
},
"defaultConfiguration": "development"
@@ -64,7 +64,7 @@
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "testing-checkbox:build"
"browserTarget": "test-checkbox:build"
}
},
"lint": {
@@ -72,8 +72,8 @@
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/testing-checkbox/**/*.ts",
"apps/testing-checkbox/**/*.html"
"apps/test/checkbox/**/*.ts",
"apps/test/checkbox/**/*.html"
]
}
},
@@ -81,7 +81,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/testing-checkbox/jest.config.ts",
"jestConfig": "apps/test/checkbox/jest.config.ts",
"passWithNoTests": true
},
"configurations": {

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"outDir": "../../../dist/out-tsc",
"types": []
},
"files": ["src/main.ts"],

View File

@@ -22,7 +22,7 @@
"path": "./tsconfig.editor.json"
}
],
"extends": "../../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,

View File

@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"outDir": "../../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node", "@testing-library/jest-dom"]
},

View File

@@ -3,7 +3,7 @@ title: 🟠 Harness Creation
description: Challenge 24 is about creating a component harness.
author: Thomas Laforge
challengeNumber: 24
command: create-harness
command: test-create-harness
sidebar:
order: 112
---

View File

@@ -3,7 +3,7 @@ title: 🟢 Checkbox
description: Challenge 28 is about testing a simple checkbox
author: Thomas Laforge
challengeNumber: 10
command: testing-checkbox
command: test-checkbox
sidebar:
order: 10
---