Skip to content

Commit

Permalink
fix: removed ignore flag for class transformer decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinCK committed Dec 25, 2020
1 parent 2abdc21 commit f500747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export class Builder {
data = await processorInstance.preProcess(fixture.name, data);
}

entity = plainToClassFromExist(entity, data, { ignoreDecorators: true });
entity = plainToClassFromExist(entity, data, { ignoreDecorators: false });
await callExecutors();

/* istanbul ignore else */
if (typeof processorInstance.postProcess === 'function') {
await processorInstance.postProcess(fixture.name, entity);
}
} else {
entity = plainToClassFromExist(entity, data, { ignoreDecorators: true });
entity = plainToClassFromExist(entity, data, { ignoreDecorators: false });
await callExecutors();
}

Expand Down

0 comments on commit f500747

Please sign in to comment.