This document provides an overview of testing in the ImageKit Angular SDK.
The SDK uses Playwright for end-to-end testing.
# Install root dependencies
npm install
# Install test app dependencies
cd test-app
npm install
# Install Playwright browsers
npx playwright install# From root directory
npm run test:e2e # Run all tests headless
npm run test:e2e:ui # Open interactive UI
npm run test:e2e:headed # Run with visible browser
# From test-app directory
cd test-app
npm run test:e2e # Run all tests
npm run test:e2e:ui # Open interactive UI
npm run test:e2e:headed # Run with visible browsertest-app/
├── e2e/
│ ├── ik-image.spec.ts # IKImage component tests
│ ├── ik-video.spec.ts # IKVideo component tests
│ ├── transformations.spec.ts # URL transformation tests
│ ├── integration.spec.ts # Integration tests
│ └── README.md # Detailed E2E testing guide
└── playwright.config.ts # Playwright configuration
npm run test:e2e:uicd test-app
npx playwright test --debugnpm run test:e2e:headedcd test-app
npx playwright test ik-image.spec.tscd test-app
npx playwright test --project="Desktop Chrome"After running tests, view the HTML report:
cd test-app
npx playwright show-report- Check existing test files for examples
- Review Playwright documentation