Skip to content

Commit

Permalink
chore: fix FE lint, build and test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Jun 27, 2024
1 parent fd67227 commit 71f39c0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 65 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,19 @@
},
{
"sourceTag": "scope:catprofile",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:catprofile"]
"onlyDependOnLibsWithTags": [
"scope:shared",
"scope:catprofile",
"scope:user"
]
},
{
"sourceTag": "scope:fostering",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:fostering"]
"onlyDependOnLibsWithTags": [
"scope:shared",
"scope:fostering",
"scope:user"
]
},
{
"sourceTag": "scope:user",
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

This demonstration app is a web-based platform (REST API) called `CatFostering`. The CatFoster application is a simplified example that demonstrates the integration of [Ory](https://ory.sh) in a [NestJS](https://nestjs.com) application with the [NestJS Ory Integration libraries](https://github.com/getlarge/nestjs-ory-integration).

<p align="center">
<a href="https://github.com/getlarge/nestjs-ory-integration/" target="blank"><img src="https://ipfs.io/ipfs/QmQ6CMaraTMrv8byJfY64mDM6o7citx1pgEobMKWEJaSCB?filename=ory-nestjs-min.png" width="120" alt="NestOry Logo" /></a>
</p>

> **Note**
> If this is your first time working with Ory, I recommend reading the [Introduction to Ory](https://dev.to/getlarge/introduction-to-ory-47nh) article to familiarize yourself with the core components and concepts of Ory.
Expand Down
4 changes: 2 additions & 2 deletions apps/cat-fostering-web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
"maximumWarning": "50kb",
"maximumError": "200kb"
}
],
"outputHashing": "all"
Expand Down
12 changes: 1 addition & 11 deletions apps/cat-fostering-web/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@ import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';

import { AppComponent } from './app.component';
import { NxWelcomeComponent } from './nx-welcome.component';

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent, NxWelcomeComponent, RouterTestingModule],
imports: [AppComponent, RouterTestingModule],
}).compileComponents();
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain(
'Welcome cat-fostering-web'
);
});

it(`should have as title 'cat-fostering-web'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
} from '@angular/material/card';
import { MatInputModule } from '@angular/material/input';
import { CatProfileStateService } from '@cat-fostering/ng-catprofile-state';
import { UserStateService } from '@cat-fostering/ng-user-state';
import {
CreateCatProfile,
UpdateCatProfile,
} from '@cat-fostering/ng-data-acess';
import { UserStateService } from '@cat-fostering/ng-user-state';
import { patch } from '@rx-angular/cdk/transformations';
import { RxState } from '@rx-angular/state';
import { rxActions } from '@rx-angular/state/actions';
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion libs/ng-shared/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './lib/grid/grid.component';
export * from './lib/header/header.component';
export * from './lib/not-found-page/not-found-page.component';

0 comments on commit 71f39c0

Please sign in to comment.