Skip to content

Commit ef53050

Browse files
committed
add tests
1 parent dd999c5 commit ef53050

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ workspace/
55
**/build/
66
**/public/build
77
**/playwright-report
8+
**/test-results
89
data.db
910
/playground
1011
**/tsconfig.tsbuildinfo

epicshop/in-browser-tests.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { dirname, resolve } from 'path'
2+
import { fileURLToPath } from 'url'
3+
import { setupInBrowserTests } from '@epic-web/workshop-utils/playwright.server'
4+
5+
const __dirname = dirname(fileURLToPath(import.meta.url))
6+
process.env.EPICSHOP_CONTEXT_CWD = resolve(__dirname, '..')
7+
8+
setupInBrowserTests()

epicshop/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

epicshop/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"type": "module",
3+
"scripts": {
4+
"test": "playwright test"
5+
},
36
"dependencies": {
47
"@epic-web/config": "^1.5.3",
58
"@epic-web/workshop-app": "^4.27.0",
9+
"@epic-web/workshop-utils": "^4.27.0",
610
"execa": "^8.0.1",
711
"fs-extra": "^11.2.0"
812
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"scripts": {
3333
"postinstall": "cd ./epicshop && npm install",
3434
"start": "npx --prefix ./epicshop epicshop start",
35-
"dev": "npx --prefix ./epicshop epicshop start",
3635
"setup": "node ./epicshop/setup.js",
3736
"setup:custom": "node ./epicshop/setup-custom.js",
3837
"lint": "eslint .",

0 commit comments

Comments
 (0)