
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@spartez-software/azure-test
Advanced tools
azure-tests
(Beta)Helper lib - azure integration tests
npm install @spartez-software/azure-test --save-dev
TEST_AZURE_URL=https://dev.azure.com/your-azure-site-name
TEST_AZURE_USER_TOKEN=pst! it is a secret pat, it belongs to the user that we use to make changes in Azure!
import { step } from '@spartez-software/test-utils';
import { TeamProjectReference } from 'azure-devops-node-api/interfaces/CoreInterfaces';
import { WorkItem } from 'azure-devops-node-api/interfaces/WorkItemTrackingInterfaces';
import { AzureDevOps } from '@spartez-software/azure-test/AzureDevOps';
describe('azure tests', () => {
const azureDevOps = AzureDevOps.fromEnv();
let teamProjectReference: TeamProjectReference;
jest.retryTimes(5);
jest.setTimeout(240000);
beforeEach(async () => {
await step('Create azure Project', async () => {
teamProjectReference = await azureDevOps.createProject();
expect(teamProjectReference).toBeDefined();
});
});
it('should create and destroy project', async () => {
const projectId = String(teamProjectReference.id);
const workItemTrackingApi = await azureDevOps.connection.getWorkItemTrackingApi();
const json = [{
op: 'add',
path: '/fields/System.Title',
from: null,
value: 'Sample task',
}];
let wi: WorkItem;
await step('Create work item', async () => {
wi = await workItemTrackingApi.createWorkItem({}, json, projectId, 'Task');
expect(wi).toBeDefined();
});
await step('Verify workitem exists', async () => {
const workItem = await workItemTrackingApi.getWorkItem(wi.id as number);
expect(workItem).toBeDefined();
});
});
afterEach(async () => {
await step('Delete azure project', async () => {
if (teamProjectReference.id) {
await azureDevOps.deleteProject(teamProjectReference.id);
}
});
});
});
FAQs
azure integration tests helper lib
The npm package @spartez-software/azure-test receives a total of 1,781 weekly downloads. As such, @spartez-software/azure-test popularity was classified as popular.
We found that @spartez-software/azure-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.