Skip to content

Commit

Permalink
refactor: move end-to-end test in mono package (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhomer authored Feb 19, 2022
1 parent 930eaa0 commit 9070966
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.{cjs,css,js,ts,tsx,md}": "prettier --write .",
"*.{cjs,css,js,json,ts,tsx,md}": "prettier --write .",
"*.{cjs,js,ts,tsx}": "eslint src --ext .cjs --ext .js --ext .tsx --ext .ts --fix"
}

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "digital-garden",
"name": "@digital-garden/root",
"version": "1.0.0",
"description": "Digital Garden template",
"license": "ISC",
Expand All @@ -25,12 +25,12 @@
"prepare": "husky install",
"prettier": "npx prettier --check .",
"prettier:fix": "npx prettier --write .",
"report:html": "npx playwright show-report",
"start": "next start",
"test": "jest",
"test:build": "GARDENS_DIRECTORY=src/test/content next build",
"test:e2e": "playwright test -g '.*.spec.mjs'",
"test:e2e:cucumber:dev": "server-test dev:test 3000 cucumber-js",
"test:e2e": "pnpm --filter @digital-garden/end-to-end test:e2e",
"test:e2e:cucumber": "pnpm --filter @digital-garden/end-to-end test:e2e:cucumber",
"test:e2e:cucumber:dev": "server-test dev:test 3000 test:e2e:cucumber",
"test:watch": "jest --watch"
},
"dependencies": {
Expand All @@ -55,7 +55,6 @@
"@types/react": "^17.0.39",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"allure-playwright": "^2.0.0-beta.15",
"autoprefixer": "^10.4.2",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
Expand All @@ -64,7 +63,6 @@
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.4",
"playwright": "^1.19.1",
"postcss": "^8.4.6",
"prettier": "^2.5.1",
"remark": "^14.0.2",
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions packages/end-to-end/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@digital-garden/end-to-end",
"version": "1.0.0",
"description": "",
"license": "ISC",
"author": "",
"main": "index.js",
"scripts": {
"report:html": "npx playwright show-report",
"start": "cd ../.. && pnpm start",
"test:e2e": "playwright test -g '.*.spec.mjs'",
"test:e2e:cucumber": "cucumber-js"
},
"devDependencies": {
"allure-playwright": "^2.0.0-beta.15",
"playwright": "^1.19.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
187 changes: 96 additions & 91 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- "packages/*"

0 comments on commit 9070966

Please sign in to comment.