Skip to content

Commit

Permalink
chore: remove playwright for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Jun 8, 2024
1 parent e1e6513 commit d36f5a4
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 94 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
- name: Install Dependencies
run: bun install

- name: Install Playwright Browsers
run: bun playwright install --with-deps

- name: Run DB Migrations
run: bun db:migrate

Expand All @@ -70,14 +67,3 @@ jobs:

- name: Build
run: bun run build

- name: Run Playwright tests
run: bun playwright test

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
14 changes: 0 additions & 14 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ jobs:
- name: Install Dependencies
run: bun install

- name: Install Playwright Browsers
run: bun playwright install --with-deps

- name: Run DB Migrations
run: bun db:migrate

Expand All @@ -85,14 +82,3 @@ jobs:

- name: Build
run: bun run build

- name: Run Playwright tests
run: bun playwright test

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,5 @@ dist
# DS Store files
.DS_Store

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/

# task file
.todo
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"unifiedjs.vscode-mdx",
"christian-kohler.path-intellisense",
"YoavBls.pretty-ts-errors",
"bradlc.vscode-tailwindcss",
"ms-playwright.playwright"
"bradlc.vscode-tailwindcss"
]
}
3 changes: 0 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ You can checkout which variables are needed and which are optional in the `src/e
# Run the project's dev server
bun dev

# Run e2e tests
bun playwright test

# Build the project
bun run build

Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ ignorePaths:
- .vscode/extensions.json
- public
- tsconfig.tsbuildinfo
- playwright-report
- test-results
- branch_out
words:
- Arcjet
Expand All @@ -33,6 +31,7 @@ words:
- neondatabase
- nextjs
- packagejson
- paralleldrive
- Posthog
- ratelimit
- Registrator
Expand Down
9 changes: 0 additions & 9 deletions e2e/example.spec.ts

This file was deleted.

7 changes: 0 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import jsdoc from 'eslint-plugin-jsdoc';
import playwright from 'eslint-plugin-playwright';
import * as regexpPlugin from 'eslint-plugin-regexp';
import pluginSecurity from 'eslint-plugin-security';
import tseslint from 'typescript-eslint';
Expand Down Expand Up @@ -60,12 +59,6 @@ export default tseslint.config(
],
},

// Playwright
{
files: ['e2e/**'],
...playwright.configs['flat/recommended'],
},

// Settings and rule overrides
{
linterOptions: {
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "module",
"scripts": {
"build": "next build",
"clean": "rimraf --glob .next node_modules *.tsbuildinfo next-env.d.ts .eslintcache playwright-report test-results",
"clean": "bun run rm -rf .next node_modules *.tsbuildinfo next-env.d.ts",
"commit": "git-cz",
"db:check": "drizzle-kit check",
"db:generate": "drizzle-kit generate",
Expand Down Expand Up @@ -58,6 +58,7 @@
"@clerk/themes": "^2.1.9",
"@hookform/resolvers": "^3.6.0",
"@neondatabase/serverless": "^0.9.3",
"@paralleldrive/cuid2": "^2.2.2",
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
Expand Down Expand Up @@ -107,7 +108,6 @@
"@happy-dom/global-registrator": "^14.12.0",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@next/eslint-plugin-next": "^14.2.3",
"@playwright/test": "^1.44.1",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.13",
Expand All @@ -127,7 +127,6 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^48.2.9",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-regexp": "^2.6.0",
Expand All @@ -143,7 +142,6 @@
"prettier": "^3.3.1",
"prettier-plugin-curly": "^0.2.1",
"prettier-plugin-packagejson": "^2.5.0",
"rimraf": "^5.0.7",
"tailwindcss": "^3.4.4",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.4.5",
Expand Down
33 changes: 0 additions & 33 deletions playwright.config.ts

This file was deleted.

0 comments on commit d36f5a4

Please sign in to comment.