멋진 프리릴리즈 v0.4는 파이프 하네스에 필요한 pipeName 옵션을 다시 도입합니다.
2022년 7월에 Angular용 통합 테스트 라이브러리인 우리published the version 0.4.0 prerelease of Spectacular가 출시되었습니다.
Note that for prerelase versions, that is versions <1.0.0, minor version increases indicate breaking changes, for example releasing version 0.4.0 introduces at least one breaking change compared to version 0.3.0. Patch version increases for prerelease versions indicate bugfixes, refactors, performance improvements, and/or feature additions.
시험판 버전 0.2.0-0.4.0 간의 주요 변경 사항에 대해 논의해 보겠습니다.
파이프 하네스에 대한 pipeName 옵션이 다시 도입되었습니다.
2022년 5월에 출시된 Spectacular 프리릴리즈 버전 0.3.0에서는 Angular 파이프 테스트를 더 쉽게 하기 위해
pipeName
팩토리에서 createPipeHarness
옵션을 제거했습니다. 이것은 버전 0.3.0에서 pipeName
옵션이 완전히 제거되었기 때문에 주요 변경 사항이었습니다.아쉽게도 파이프 이름을 결정하기 위해 내부적으로 사용한 함수는 Angular View Engine에서 남은 것이므로 Angular에서 제거되었습니다.
이 때문에 Spectacular 버전 0.4.0에서는
pipeName
에 대한 필수 createPipeHarness
옵션을 다시 추가하는 주요 변경 사항을 도입했습니다.멋진 버전 0.3.0:
const harness = createPipeHarness({
pipe: PowPipe,
value: 2,
});
멋진 버전 <0.3.0 >=0.4.0:
const harness = createPipeHarness({
pipe: PowPipe,
pipeName: 'pow',
value: 2,
});
Angular 파이프 통합 테스트의 전체 예는 the documentation for Spectacular's Pipe testing API을 참조하십시오.
Reference
이 문제에 관하여(멋진 프리릴리즈 v0.4는 파이프 하네스에 필요한 pipeName 옵션을 다시 도입합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/transient-thoughts/spectacular-prerelease-v04-reintroduces-the-required-pipename-option-for-pipe-harnesses-23b7텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)