Skip to content

Commit bb07207

Browse files
committed
feat: add email subsciption
1 parent e1a57a8 commit bb07207

File tree

60 files changed

+201
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+201
-193
lines changed

apps/angular/anchor-scrolling/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'angular-anchor-scrolling',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/angular/anchor-scrolling',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/angular/bug-cd/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'angular-bug-cd',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/angular/bug-cd',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/angular/crud/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'angular-crud',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
globals: {},
77
coverageDirectory: '../../../coverage/apps/angular/crud',
88
transform: {

apps/angular/injection-token/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'angular-injection-token',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/angular/injection-token',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/angular/interop-rxjs-signal/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'angular-interop-rxjs-signal',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/angular/interop-rxjs-signal',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/angular/projection/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'angular-projection',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
globals: {},
77
coverageDirectory: '../../../coverage/apps/angular/projection',
88
transform: {

apps/angular/router-input/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { RouterLink, RouterModule } from '@angular/router';
1212
<label for="testId">TestId</label>
1313
<input id="testId" type="number" [formControl]="testId" />
1414
<button
15-
[routerLink]="'test/' + testId.value"
15+
[routerLink]="'subscription/' + testId.value"
1616
[queryParams]="{ user: userName.value }">
1717
Test
1818
</button>

apps/angular/router-input/src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const appRoutes: Route[] = [
66
loadComponent: () => import('./home.component'),
77
},
88
{
9-
path: 'test/:testId',
9+
path: 'subscription/:testId',
1010
loadComponent: () => import('./test.component'),
1111
data: {
1212
permission: 'admin',

apps/angular/router-input/src/app/test.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { AsyncPipe } from '@angular/common';
22
import { Component, inject } from '@angular/core';
33
import { ActivatedRoute } from '@angular/router';
44
import { map } from 'rxjs';
5+
56
@Component({
6-
selector: 'app-test',
7+
selector: 'app-subscription',
78
standalone: true,
89
imports: [AsyncPipe],
910
template: `

apps/forms/control-value-accessor/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'forms-control-value-accessor',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/forms/control-value-accessor',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/ngrx/effect-selector/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'ngrx-effect-selector',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
globals: {},
77
coverageDirectory: '../../../coverage/apps/ngrx/effect-selector',
88
transform: {

apps/performance/ngfor-optimize/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'performance-ngfor-optimize',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/performance/ngfor-optimize',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/performance/scroll-cd/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'performance-scroll-cd',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
globals: {},
77
coverageDirectory: '../../../coverage/apps/performance/scroll-cd',
88
transform: {

apps/rxjs/catch-error/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'rxjs-catch-error',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/rxjs/catch-error',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/rxjs/race-condition/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/rxjs/race-condition/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'rxjs-race-condition',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
globals: {},
77
coverageDirectory: '../../../coverage/apps/rxjs/race-condition',
88
transform: {

apps/testing/checkbox/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-checkbox',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
coverageDirectory: '../../../coverage/apps/testing/checkbox',
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/testing/create-harness/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-create-harness',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

apps/testing/harness/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-harness',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

apps/testing/input-output/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/testing/input-output/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-input-output',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

apps/testing/modal/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/testing/modal/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-modal',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

apps/testing/nested/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/testing/nested/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-nested',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

apps/testing/router-outlet/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/testing/router-outlet/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-router-outlet',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
globals: {},
77
transform: {
88
'^.+\\.(ts|mjs|js|html)$': [

apps/testing/table/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ NOT IMPLEMENTED YET
1010
If the title is correctly typed, you can send the request otherwise you get a nice error and the request is not sent.
1111
You can play with it by running : `npx nx serve testing-table`.
1212
13-
The goal is to test this behavior with Testing library and Cypress
13+
The goal is to subscription this behavior with Testing library and Cypress
1414
15-
The file named `child.component.spec.ts` will let test your application using Testing Library. To run the test suits, you need to run `npx nx test testing-table`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your test by clicking on the `Run` button above each `describe` or `it` blocks.
15+
The file named `child.component.spec.ts` will let subscription your application using Testing Library. To run the subscription suits, you need to run `npx nx subscription testing-table`. You can also install [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) to execute your subscription by clicking on the `Run` button above each `describe` or `it` blocks.
1616
17-
For testing cypress, you will execute your test inside the `child.component.cy.ts` and run `npx nx component-test testing-table` to execute your test suits. You can add the `--watch` flag to execute your test in watch mode.
17+
For testing cypress, you will execute your subscription inside the `child.component.cy.ts` and run `npx nx component-subscription testing-table` to execute your subscription suits. You can add the `--watch` flag to execute your subscription in watch mode.
1818
19-
I created some `it` blocks but feel free to add more test if you like to. -->
19+
I created some `it` blocks but feel free to add more subscription if you like to. -->
2020

2121
### Submitting your work
2222

apps/testing/table/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/testing/table/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-table',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

apps/testing/table/src/app/table.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('AppComponent', () => {
4040
// await userEvent.click(okButton);
4141
});
4242

43-
// test('error message is shown if you click "Cancel" in the confirmation modal after submitting a name', async () => {
43+
// subscription('error message is shown if you click "Cancel" in the confirmation modal after submitting a name', async () => {
4444
// userEvent.setup();
4545
// await render(AppComponent);
4646

@@ -68,7 +68,7 @@ describe('AppComponent', () => {
6868
// expect(errorText).toBeInTheDocument();
6969
// });
7070

71-
// test('confirm message is shown if you click "Confirm" in the confirmation modal after submitting a name', async () => {
71+
// subscription('confirm message is shown if you click "Confirm" in the confirmation modal after submitting a name', async () => {
7272
// userEvent.setup();
7373
// await render(AppComponent);
7474

apps/testing/todos-list/cypress/support/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ***********************************************************
22
// This example support/component.ts is processed and
3-
// loaded automatically before your test files.
3+
// loaded automatically before your subscription files.
44
//
55
// This is a great place to put global configuration and
66
// behavior that modifies Cypress.

apps/testing/todos-list/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default {
33
displayName: 'testing-todos-list',
44
preset: '../../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
5+
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
66
transform: {
77
'^.+\\.(ts|mjs|js|html)$': [
88
'jest-preset-angular',

0 commit comments

Comments
 (0)