Would you like to share pseudonymous usage data about this project with the Angular Team
at Google under Google's Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.dev/cli/analytics.
您願意與 Angular 團隊分享有關此項目的匿名使用數據嗎
根據 Google 的隱私權政策 (https://policies.google.com/privacy) 在 Google 進行操作。了解更多
詳細資訊以及如何更改此設置,請參閱 https://angular.dev/cli/analytics。
//先安裝Angular Material ng add @angular/material 套件@angular/material@19.2.1 將被安裝並執行。 您要繼續嗎? (是/否) The package @angular/material@19.2.1 will be installed and executed. Would you like to proceed? (Y/n)
[plugin:vite:vue] v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.
// Case 2: 密碼少於最短長度限制時,出現錯誤訊息。 test(`renders an error if length is less than ${minLength}`, async () => { await wrapper.get('[data-test="password"]').setValue('12345')
expect(wrapper.html()).toContain(`Password must be at least ${minLength} characters`) })
// Case 3: 當 showError 為 false 時,不顯示錯誤訊息。 test('not renders an error if showError is false ', async () => { await wrapper.get('[data-test="password"]').setValue('12345')
expect(wrapper.html()).toContain(`Password must be at least ${minLength} characters`)
import express from "express"; import path from "path"; import homepageRouter from "./homepageRouter.js"; import assetsRouter from "./assetsRouter.js";