jest-allure2-reporter
Version:
Idiomatic Jest reporter for Allure Framework
11 lines (8 loc) • 345 B
text/typescript
import type { FileAttachmentHandler } from '../types';
import { fastMove } from '../../utils';
import { placeAttachment } from './placeAttachment';
export const moveHandler: FileAttachmentHandler = async (context) => {
const destination = placeAttachment(context);
await fastMove(context.sourcePath, destination);
return destination;
};