feat(test): test moving lib

This commit is contained in:
thomas
2023-10-17 22:54:25 +02:00
parent 1269464c89
commit fc6de28091
20 changed files with 23 additions and 23 deletions

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
/* eslint-disable */ /* eslint-disable */
export default { export default {
displayName: 'create-harness', displayName: 'test-create-harness',
preset: '../../jest.preset.js', preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
transform: { transform: {
'^.+\\.(ts|mjs|js|html)$': [ '^.+\\.(ts|mjs|js|html)$': [

View File

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

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

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

View File

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

View File

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