-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify integration app and run Cypress SSR tests (#2017)
This commit removes `@Select` decorator usages from the integration app. This also updated the Cypress configuration to match `ssr` folder if the `SSR` environment variable is provided. This is done because the `--integrationFolder` argument is not available anymore and we should be using `e2e.specPattern` property. The `integration/project.json` has been updated to run `serve` target with a development configuration so recompilations are faster by default; its `build` target has been replaced. The HMR plugin has been removed from the integration app because it's not being maintained anymore and brings some issues. with `build-app`.
- Loading branch information
Showing
22 changed files
with
107 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div> | ||
{{ list$ | async }}, | ||
{{ foo | async }} | ||
{{ hello$ | async }} | ||
</div> | ||
|
||
<div *ngIf="router$ | async as router"> | ||
animals were resolved {{ router.root.firstChild.firstChild.data.list }} | ||
animals were resolved {{ router.root!.firstChild!.firstChild!.data.list }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { Todo } from '@integration/store/todos/todos.model'; | ||
|
||
export class AddTodo { | ||
public static type = 'AddTodo'; | ||
constructor(public readonly payload: Todo) {} | ||
static type = 'AddTodo'; | ||
constructor(readonly payload: Todo) {} | ||
} | ||
|
||
export class RemoveTodo { | ||
public static type = 'RemoveTodo'; | ||
constructor(public readonly payload: number) {} | ||
static type = 'RemoveTodo'; | ||
constructor(readonly payload: number) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export class SetPrefix { | ||
public static type = 'SetPrefix'; | ||
static type = 'SetPrefix'; | ||
} | ||
|
||
export class LoadData { | ||
public static type = 'LoadData'; | ||
static type = 'LoadData'; | ||
} |
Oops, something went wrong.