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文件,测试将在自动浏览器中运行。