@oguzhan18/angular-jest
ALWAYS use when testing Angular applications with Jest, configuring Jest, or migrating from Jasmine/Karma to Jest.
No skills found in this collection.
SKILL.md
| name | angular-jest |
| description | ALWAYS use when testing Angular applications with Jest, configuring Jest, or migrating from Jasmine/Karma to Jest. |
Angular + Jest
Version: Jest 29.x (2025) Tags: Jest, Testing, Unit Tests
References: Jest • jest-preset-angular
Best Practices
- Install Jest
npm install --save-dev jest @types/jest jest-preset-angular
- Configure Jest
// jest.config.js
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
};
- Write test
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MyComponent } from './my.component';
describe('MyComponent', () => {
let component: MyComponent;
let fixture: ComponentFixture<MyComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [MyComponent]
}).compileComponents();
fixture = TestBed.createComponent(MyComponent);
component = fixture.componentInstance;
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
Loading...
Select a file to preview
Analyzing security...
Checking scan reports and verification data.
Bill of Materials
Everything this skill can do — files, network, commands, and more.
No demos yet. To add one, ask your AI agent: "Submit a demo for @oguzhan18/angular-jest" — or upload via the API.
To add a demo, ask your AI agent: "Submit a demo for @oguzhan18/angular-jest"
No eval data yet. Eval results are published via the SkillSafe API.