docs: add cypress test

This commit is contained in:
MapleLeaf
2022-01-10 15:06:55 -06:00
parent 4f463bfa23
commit 87cbf1b74d
13 changed files with 758 additions and 3 deletions

View File

@@ -4,6 +4,8 @@
"scripts": {
"prepare": "remix setup node",
"dev": "concurrently 'typedoc --watch' 'remix dev'",
"test": "pnpm build && pnpm start & wait-on http-get://localhost:3000 && cypress run",
"test-dev": "pnpm dev & wait-on http-get://localhost:3000 && cypress open",
"build": "typedoc && remix build",
"start": "remix-serve build",
"typecheck": "tsc --noEmit"
@@ -28,14 +30,17 @@
"devDependencies": {
"@remix-run/dev": "^1.1.1",
"@remix-run/node": "^1.1.1",
"@testing-library/cypress": "^8.0.2",
"@types/node": "*",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/tailwindcss": "^3.0.2",
"concurrently": "^7.0.0",
"cypress": "^9.2.0",
"rehype-prism-plus": "^1.2.2",
"typedoc": "^0.22.10",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"wait-on": "^6.0.0"
},
"engines": {
"node": ">=14"