icon picker
TIP - TEST

TIP - TEST
ng generate component pup --flat --skip-tests
ng serve --configuration=vi --proxy-config=proxy.conf.json --port=4400
npx nx run term-deposit-open-new-widget:test
npx nx run term-deposit-withdraw-widget:test
npx ng run transfer-to-someone-widget:test —codeCoverage --detect-open-handles
npx ng run transfer-to-someone-widget:test —codeCoverage --detect-open-handles
npx ng run account-detail-widget-extended:test --codeCoverage --detect-open-handles
you can follow this file to create a test case with $localize: libs/widgets/bill-payment-widget/src/sub-components/review-submit/review-submit.component.spec.ts
GIT - branch
git commit --amend
git rebase develop
git rebase -i HEAD~{num} //sửa commit
git reset HEAD~{num} //reset về commit number
→ Rename branch
git branch -m new-branch-name
→ Delete branch
git branch -d for local
git push <remote> --delete <branch> for remotely
git fetch -p The -p flag means "prune". After fetching, branches which no longer exist on the remote will be deleted.
—————————————————————————————————————
<property name="output.navigateTo" viewHint="text-input,admin,designModeOnly" type="string"> <value type="string">navigation:</value> </property>
collect-term-deposit-info.periods
fixture.debugElement.query(By.css(`.suggestion-amount-transfer__item:nth-of-type(1)`))
[WS2][S15][TOREOMWS02-8827] Web - Transaction Detail
Husky::
Merge từ develop::
Nếu conflic thì::
+ Cancel merge và lên git(web) copy file conflic vào nhánh hiện tại
+ Sau đó push lên git nhánh mình
+ Sau đó merge từ develop về
+ Không xảy ra conflic thì sửa và push lên finale
Nếu không bị conflic thì làm bth

Check::
Smell code
Path
Logic
Unit-Test
Css
Khi có sự thay đổi thì làm việc với BA để xác nhận đầu tiên
ng generate @nrwl/angular:library name-libs-prefix
updateUI/TOREOMWS02-10739 - Update UI for Term Deposit
value = { ...value, transactionAmountCurrency: add } as TransactionItem;
—————————————————————————————————————
Unit-test (Jest)
*** whenStable()
+ Những gì mà whenStable làm là đợi all các tác vụ trong NgZone thử nghiệm hoàn thành
+ Khi ko kiểm tra với async, NgZone hoàn toàn ko được tạo và whenStable trả về ngay lập tức
+ syntax::
fixture.whenStable().then(()=> {
})

*** Using onPush so run one time only, so in file test not working when call in case test (IT)
+ Đã được sd trên beforeEach(()=> {fixture.detectChanges()});
it("should not render template collection data when data available", () => {
component.tdCollectInfoData = undefined;
fixture.detectChanges(); //if file ts use onPush -> not working
const tmpCollectData = fixture.debugElement.query(By.css("techcom-collect-td-info-suggestion"));
console.log('tmpCollectData', tmpCollectData);
// expect(tmpCollectData).toBeFalsy();
});

Remove node_module and package-lock.json (powershell fast)
Syntax: Remove-Item -Recurse -Force node_modules


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.