gridsome portfolio starter
1.0.0
在此處查看Astro版本:https://github.com/drehimself/astro--portfolio-starter
一個簡單的投資組合入門主題

https://gridsome-portfolio-starter.netlify.com
npm install --global @gridsome/cligit clone https://github.com/drehimself/gridsome-portfolio-starter.gitcd gridsome-portfolio-starternpm install package.json由於賽普拉斯的下載可能很長。gridsome develop以在http://localhost:8080啟動本地開發服務器我使用柏樹有一些基本的端到端測試。您可以在/cypress/integration/tests.js中找到它們。
要運行測試,請首先確保您的開發服務器隨著gridsome develop運行。我假設您使用的是8080的默認端口。如果沒有,請更改cypress.json文件中的baseUrl鍵。
開發服務器運行後,您可以運行npm run test或./node_modules/.bin/cypress open以啟動Cypress。柏樹電子應用將運行。單擊tests.js文件,測試將在自動瀏覽器中運行。