Hello, {{ title }}
229 |Congratulations! Your app is running. 🎉
230 |├── Angular17 ├── src │ ├── assets │ │ └── .gitkeep │ ├── app │ │ ├── app.component.css │ │ ├── app.routes.ts │ │ ├── app.config.ts │ │ ├── app.component.ts │ │ ├── app.component.spec.ts │ │ └── app.component.html │ ├── styles.css │ ├── favicon.ico │ ├── main.ts │ └── index.html ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json ├── README.md ├── tsconfig.app.json ├── tsconfig.spec.json ├── .editorconfig ├── .gitignore ├── package.json ├── tsconfig.json └── angular.json ├── Angular 15 and below ├── src │ ├── assets │ │ └── .gitkeep │ ├── app │ │ ├── app.component.css │ │ ├── app.component.html │ │ ├── continent-service │ │ │ ├── continent.ts │ │ │ ├── country.ts │ │ │ ├── continent.service.class.spec.ts │ │ │ ├── continent.service.spec.ts │ │ │ ├── continent.service.ng-mocks.spec.ts │ │ │ └── continent.service.ts │ │ ├── app.component.ts │ │ ├── edit-country │ │ │ ├── edit-country.component.scss │ │ │ ├── activated-route-mock.ts │ │ │ ├── edit-country.module.ts │ │ │ ├── save-country.spec.ts │ │ │ ├── save-country-with-dummy-component.spec.ts │ │ │ ├── edit-country.component.html │ │ │ ├── edit-country.component.class.spec.ts │ │ │ ├── edit-country.component.ts │ │ │ ├── __snapshots__ │ │ │ │ ├── save-country-with-dummy-component.spec.ts.snap │ │ │ │ └── save-country.spec.ts.snap │ │ │ └── edit-country.component.component.spec.ts │ │ ├── app-routing.module.ts │ │ ├── app.module.ts │ │ ├── mocking │ │ │ └── simple-functions.spec.ts │ │ └── app.component.spec.ts │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── styles.css │ ├── favicon.ico │ ├── index.html │ ├── main.ts │ └── polyfills.ts ├── setup-jest.ts ├── tsconfig-esm.spec.json ├── .editorconfig ├── tsconfig.spec.json ├── jest.config.js ├── tsconfig.app.json ├── jest-esm.config.js ├── jest-global-mocks.ts ├── tsconfig.json ├── .browserslistrc ├── .gitignore ├── package.json ├── README.md ├── angular.json └── LICENSE ├── angular17-workspace ├── projects │ ├── app1 │ │ ├── src │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── app │ │ │ │ ├── app.component.css │ │ │ │ ├── app.component.html │ │ │ │ ├── app.routes.ts │ │ │ │ ├── app.config.ts │ │ │ │ ├── app.component.ts │ │ │ │ └── app.component.spec.ts │ │ │ ├── styles.css │ │ │ ├── favicon.ico │ │ │ ├── main.ts │ │ │ └── index.html │ │ ├── setup-jest.ts │ │ ├── tsconfig.app.json │ │ ├── tsconfig.spec.json │ │ └── jest.config.js │ ├── app2 │ │ ├── src │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── app │ │ │ │ ├── app.component.css │ │ │ │ ├── app.routes.ts │ │ │ │ ├── app.config.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.component.spec.ts │ │ │ │ └── app.component.html │ │ │ ├── styles.css │ │ │ ├── favicon.ico │ │ │ ├── main.ts │ │ │ └── index.html │ │ ├── setup-jest.ts │ │ ├── tsconfig.app.json │ │ ├── tsconfig.spec.json │ │ └── jest.config.js │ └── shared-library │ │ ├── setup-jest.ts │ │ ├── src │ │ ├── public-api.ts │ │ └── lib │ │ │ ├── shared-library.component.ts │ │ │ ├── shared-library.service.ts │ │ │ ├── shared-library.service.spec.ts │ │ │ └── shared-library.component.spec.ts │ │ ├── ng-package.json │ │ ├── package.json │ │ ├── tsconfig.lib.prod.json │ │ ├── tsconfig.spec.json │ │ ├── tsconfig.lib.json │ │ ├── jest.config.js │ │ └── README.md ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json ├── .editorconfig ├── .gitignore ├── README.md ├── tsconfig.json ├── package.json └── angular.json ├── angular17-JustJeb-workspace ├── projects │ ├── app1 │ │ ├── src │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── app │ │ │ │ ├── app.component.css │ │ │ │ ├── app.component.html │ │ │ │ ├── app.routes.ts │ │ │ │ ├── app.config.ts │ │ │ │ ├── app.component.ts │ │ │ │ └── app.component.spec.ts │ │ │ ├── styles.css │ │ │ ├── favicon.ico │ │ │ ├── main.ts │ │ │ └── index.html │ │ ├── setup-jest.ts │ │ ├── tsconfig.app.json │ │ ├── tsconfig.spec.json │ │ └── jest.config.js │ ├── app2 │ │ ├── src │ │ │ ├── assets │ │ │ │ └── .gitkeep │ │ │ ├── app │ │ │ │ ├── app.component.css │ │ │ │ ├── app.routes.ts │ │ │ │ ├── app.config.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.component.spec.ts │ │ │ │ └── app.component.html │ │ │ ├── styles.css │ │ │ ├── favicon.ico │ │ │ ├── main.ts │ │ │ └── index.html │ │ ├── setup-jest.ts │ │ ├── tsconfig.app.json │ │ ├── tsconfig.spec.json │ │ └── jest.config.js │ └── shared-library │ │ ├── setup-jest.ts │ │ ├── src │ │ ├── public-api.ts │ │ └── lib │ │ │ ├── shared-library.component.ts │ │ │ ├── shared-library.service.ts │ │ │ ├── shared-library.service.spec.ts │ │ │ └── shared-library.component.spec.ts │ │ ├── ng-package.json │ │ ├── package.json │ │ ├── tsconfig.lib.prod.json │ │ ├── tsconfig.spec.json │ │ ├── tsconfig.lib.json │ │ ├── jest.config.js │ │ └── README.md ├── setup-jest.ts ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── tasks.json ├── .editorconfig ├── tsconfig.spec.json ├── .gitignore ├── tsconfig.json ├── package.json ├── README.md └── angular.json ├── .DS_Store ├── .vscode └── settings.json └── README.md /Angular17/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Angular17/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Angular 15 and below/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Angular 15 and below/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app1/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app2/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app1/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app2/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app1/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app2/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app1/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app2/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephanrauh/angular-jest/HEAD/.DS_Store -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app1/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app2/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app1/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app2/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /angular17-workspace/projects/shared-library/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /Angular17/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /Angular 15 and below/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | import './jest-global-mocks'; 3 | -------------------------------------------------------------------------------- /Angular17/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephanrauh/angular-jest/HEAD/Angular17/src/favicon.ico -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/shared-library/setup-jest.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular/setup-jest'; 2 | -------------------------------------------------------------------------------- /Angular 15 and below/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true, 3 | }; 4 | -------------------------------------------------------------------------------- /Angular 15 and below/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /Angular17/src/app/app.routes.ts: -------------------------------------------------------------------------------- 1 | import { Routes } from '@angular/router'; 2 | 3 | export const routes: Routes = []; 4 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app1/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |
{{sharedLibraryService.helloWorld()}}
3 | -------------------------------------------------------------------------------- /Angular 15 and below/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephanrauh/angular-jest/HEAD/Angular 15 and below/src/favicon.ico -------------------------------------------------------------------------------- /angular17-workspace/projects/app1/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular17-workspace/projects/app2/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app1/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |{{sharedLibraryService.helloWorld()}}
3 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app1/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app2/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /Angular 15 and below/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |9 | shared-library works! 10 |
11 | `, 12 | styles: `` 13 | }) 14 | export class SharedLibraryComponent { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/projects/app1/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |9 | shared-library works! 10 |
11 | `, 12 | styles: `` 13 | }) 14 | export class SharedLibraryComponent { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /angular17-JustJeb-workspace/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "./tsconfig.json", 4 | "compilerOptions": { 5 | "esModuleInterop": true, 6 | "outDir": "./out-tsc/spec", 7 | "types": [ 8 | "jest" 9 | ] 10 | }, 11 | "include": [ 12 | "src/**/*.spec.ts", 13 | "src/**/*.d.ts" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /Angular 15 and below/jest.config.js: -------------------------------------------------------------------------------- 1 | // require('jest-preset-angular/ngcc-jest-processor'); 2 | 3 | globalThis.ngJest = { 4 | skipNgcc: true, 5 | tsconfig: 'tsconfig.spec.json', // this is the project root tsconfig 6 | }; 7 | 8 | /** @type {import('@jest/types').Config.InitialOptions} */ 9 | module.exports = { 10 | preset: 'jest-preset-angular', 11 | setupFilesAfterEnv: ['Congratulations! Your app is running. 🎉
230 |Congratulations! Your app is running. 🎉
230 |Congratulations! Your app is running. 🎉
230 |