Skip to content

Commit

Permalink
Remove Cypress and localforage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyersdev committed Sep 6, 2024
1 parent 1cb8ac0 commit 5618695
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 777 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CYPRESS_BASE_URL=http://127.0.0.1:8888
FIREBASE_PROJECT_ID=demo-octo
FIREBASE_TOKEN=fake
NUXT_PUBLIC_CDN_URL=
Expand Down
8 changes: 0 additions & 8 deletions .eslintrc-todo.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,14 +793,6 @@
"@typescript-eslint/comma-dangle": "warn"
}
},
{
"files": [
"test/cypress/support/e2e.ts"
],
"rules": {
"no-proto": "warn"
}
},
{
"files": [
"types/types.ts"
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ firebase/data
node_modules
public/manifest.webmanifest
supabase
test/cypress/downloads
test/cypress/screenshots
test/cypress/videos

# We are not using Zero-Installs.
# https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored
Expand Down
2 changes: 1 addition & 1 deletion components/DocEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineComponent({
watch(coreEditor, () => {
focus()
// Expose the Ink instance for Cypress.
// Expose the Ink instance for tests.
window.inkMde = coreEditor.value?.instance
})
Expand Down
22 changes: 0 additions & 22 deletions cypress.config.ts

This file was deleted.

3 changes: 0 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,10 @@ export default defineNuxtConfig({
maximumFileSizeToCacheInBytes: (5 * 1024 * 1024),
navigateFallback: '/',
navigateFallbackDenylist: [
// Ignore Cypress routes.
/^\/__/,
// Keep this around for backward compatibility.
/^\/manifest\.json$/,
// Keep this around for backward compatibility.
/^\/service-worker\.js$/,
/cypress/,
],
runtimeCaching: [
{
Expand Down
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@
"lint:todo": "eslint-generate-todo --format json .",
"preview": "serve -p 8889 -s ./.output/public",
"test": "run-p test:unit test:e2e",
"test:e2e": "run-p test:e2e:cypress test:e2e:playwright",
"test:e2e:cypress": "cypress run",
"test:e2e": "run-p test:e2e:playwright",
"test:e2e:playwright": "playwright test",
"test:unit": "vitest",
"typecheck": "run-s typecheck:app typecheck:cypress",
"typecheck:app": "nuxt typecheck",
"typecheck:cypress": "tsc --project ./test/cypress/tsconfig.json"
"typecheck": "run-s typecheck:app",
"typecheck:app": "nuxt typecheck"
},
"dependencies": {
"@headlessui/tailwindcss": "^0.2.0",
Expand All @@ -42,7 +40,6 @@
"ink-mde": "^0.33.0",
"jszip": "^3.10.1",
"khroma": "^2.1.0",
"localforage": "^1.10.0",
"mermaid": "^9.4.3",
"micromark": "^3.2.0",
"micromark-extension-gfm": "^2.0.3",
Expand Down Expand Up @@ -77,8 +74,6 @@
"@vueuse/nuxt": "^9.13.0",
"@vueuse/rxjs": "^10.7.1",
"autoprefixer": "^10.4.16",
"cypress": "^13.6.2",
"cypress-network-idle": "^1.14.2",
"deepmerge-ts": "^4.3.0",
"eslint": "^8.56.0",
"eslint-config-artisan": "^0.2.1",
Expand Down
Loading

0 comments on commit 5618695

Please sign in to comment.