Angular
You should create a main component named AppComponent
with a template file app.component.html
. Your Angular application should be linted using TSLint with the recommended configuration.
Version
Running on Node.js v20.0.0
Supported languages
Typescript or Javascript
Testing framework
- Jest
- RxJS for reactive programming. You can use observables and operators from this library. For instance, you can import observables using
import { Observable } from 'rxjs';
. - It’s pre-configured to support TypeScript, but you can define a .js file if needed.
Special reminders and implementation details
- Angular Testing Library, a library that is built on top of DOM Testing Library by adding APIs for working with Angular components.
ts
import { render } from '@testing-library/angular';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
it('should display the title', async () => {
const { getByText } = await render(AppComponent);
expect(getByText('Hello world!')).toBeTruthy();
});
});
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Included libraries
- angular/animations
- angular/common
- angular/compiler
- angular/core
- angular/forms
- angular/platform-browser
- angular/platform-browser-dynamic
- angular/router
- tslib
- zone.js
- karma-mocha
- karma-chrome-launcher
- karma-structured-json-reporter
- angular-devkit/build-angular/plugins/karma
- @angular/compiler-cli
- @testing-library/angular
- jest-environment-jsdom
- jest-preset-angular
- ts-node
- typescript