Skip to content
Snippets Groups Projects
Commit 5a7613b3 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6477 7186 organisationseinheiten lib

parent f9b9e82a
Branches
Tags
No related merge requests found
Showing
with 168 additions and 2 deletions
...@@ -5,7 +5,7 @@ export interface Collaboration { ...@@ -5,7 +5,7 @@ export interface Collaboration {
titel: string; titel: string;
anfrage: string; anfrage: string;
zustaendigeStelle: ResourceUri; zustaendigeStelle: ResourceUri;
collaborationLevel?: number; collaborationLevel: number;
} }
export interface CollaborationResource extends Collaboration, Resource, ListItemResource {} export interface CollaborationResource extends Collaboration, Resource, ListItemResource {}
......
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "lib",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "lib",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
}
# organisations-einheit
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test organisations-einheit` to execute the unit tests.
export default {
displayName: 'organisations-einheit',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: '../../coverage/libs/organisations-einheit',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/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',
],
};
{
"name": "organisations-einheit",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/organisations-einheit/src",
"prefix": "alfa",
"projectType": "library",
"tags": [],
"targets": {
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"tsConfig": "libs/organisations-einheit/tsconfig.spec.json",
"jestConfig": "libs/organisations-einheit/jest.config.ts"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
}
}
}
/*
* Copyright (C) 2022 Das Land Schleswig-Holstein vertreten durch den
* Ministerpräsidenten des Landes Schleswig-Holstein
* Staatskanzlei
* Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
*
* Lizenziert unter der EUPL, Version 1.2 oder - sobald
* diese von der Europäischen Kommission genehmigt wurden -
* Folgeversionen der EUPL ("Lizenz");
* Sie dürfen dieses Werk ausschließlich gemäß
* dieser Lizenz nutzen.
* Eine Kopie der Lizenz finden Sie hier:
*
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
*
* Sofern nicht durch anwendbare Rechtsvorschriften
* gefordert oder in schriftlicher Form vereinbart, wird
* die unter der Lizenz verbreitete Software "so wie sie
* ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
* ausdrücklich oder stillschweigend - verbreitet.
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
import '@testing-library/jest-dom';
import 'jest-preset-angular/setup-jest';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
getTestBed().resetTestEnvironment();
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false },
errorOnUnknownProperties: true,
errorOnUnknownElements: true,
});
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"compilerOptions": {
"target": "es2022"
}
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"target": "es2015",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
},
"exclude": ["src/test-setup.ts", "**/*.spec.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"],
"target": "ES2022",
"useDefineForClassFields": false
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts", "jest.config.ts"]
}
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
"@alfa-client/loesch-anforderung-shared": ["libs/loesch-anforderung-shared/src/index.ts"], "@alfa-client/loesch-anforderung-shared": ["libs/loesch-anforderung-shared/src/index.ts"],
"@alfa-client/navigation": ["libs/navigation/src/index.ts"], "@alfa-client/navigation": ["libs/navigation/src/index.ts"],
"@alfa-client/navigation-shared": ["libs/navigation-shared/src/index.ts"], "@alfa-client/navigation-shared": ["libs/navigation-shared/src/index.ts"],
"@alfa-client/organisations-einheit": ["libs/organisations-einheit/src/index.ts"],
"@alfa-client/postfach": ["libs/postfach/src/index.ts"], "@alfa-client/postfach": ["libs/postfach/src/index.ts"],
"@alfa-client/postfach-shared": ["libs/postfach-shared/src/index.ts"], "@alfa-client/postfach-shared": ["libs/postfach-shared/src/index.ts"],
"@alfa-client/resource-redirect": ["libs/resource-redirect/src/index.ts"], "@alfa-client/resource-redirect": ["libs/resource-redirect/src/index.ts"],
...@@ -62,7 +63,7 @@ ...@@ -62,7 +63,7 @@
"@alfa-client/zustaendige-stelle-shared": ["libs/zustaendige-stelle-shared/src/index.ts"], "@alfa-client/zustaendige-stelle-shared": ["libs/zustaendige-stelle-shared/src/index.ts"],
"@ods/component": ["libs/design-component/src/index.ts"], "@ods/component": ["libs/design-component/src/index.ts"],
"@ods/system": ["libs/design-system/src/index.ts"], "@ods/system": ["libs/design-system/src/index.ts"],
"authentication": ["libs/authentication/src/index.ts"] "authentication": ["libs/authentication/src/index.ts"],
} }
}, },
"exclude": ["node_modules", "tmp"] "exclude": ["node_modules", "tmp"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment