@dargmuesli/nuxt-vio-testing 20.6.4 → 20.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/playwright.config.ts +1 -1
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"lint:ts": "tsc --noEmit",
|
|
42
42
|
"test:e2e": "playwright test",
|
|
43
43
|
"test:e2e:docker:br": "pnpm run test:e2e:docker:build && pnpm run test:e2e:docker:run",
|
|
44
|
-
"test:e2e:docker:build": "sudo docker build -t test-e2e_development --build-arg
|
|
44
|
+
"test:e2e:docker:build": "sudo docker build -t test-e2e_development --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) --target test-e2e_development ..",
|
|
45
45
|
"test:e2e:docker:run": "sudo docker run --rm -v \"$PWD/..:/srv/app\" -v \"jonas-thelemann_playwright_data:/srv/app/node_modules\" -v \"$(pnpm store path):/srv/.pnpm-store\" test-e2e_development",
|
|
46
46
|
"test:e2e:docker:server:dev": "pnpm run test:e2e:docker:br pnpm run --dir tests test:e2e:server:dev",
|
|
47
47
|
"test:e2e:docker:server:dev:update": "pnpm run test:e2e:docker:server:dev --update-snapshots",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"test:e2e:docker:server:static:update": "pnpm run test:e2e:docker:server:static --update-snapshots",
|
|
52
52
|
"test:e2e:server:dev": "cross-env PORT=3000 NUXT_PUBLIC_SITE_URL=https://localhost:3000 VIO_SERVER=dev pnpm run test:e2e",
|
|
53
53
|
"test:e2e:server:node": "cross-env NODE_ENV=production NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" NUXT_PUBLIC_I18N_BASE_URL=https://localhost:3001 NUXT_PUBLIC_SITE_URL=https://localhost:3001 PORT=3001 VIO_SERVER=node pnpm run test:e2e",
|
|
54
|
-
"test:e2e:server:static": "cross-env NODE_ENV=production PORT
|
|
54
|
+
"test:e2e:server:static": "cross-env NODE_ENV=production PORT=\"${PORT:-3002}\" NUXT_PUBLIC_SITE_URL=\"${NUXT_PUBLIC_SITE_URL:-https://localhost:3002}\" VIO_SERVER=static pnpm run test:e2e"
|
|
55
55
|
},
|
|
56
56
|
"type": "module",
|
|
57
|
-
"version": "20.6.
|
|
57
|
+
"version": "20.6.6"
|
|
58
58
|
}
|
package/playwright.config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineConfig, devices } from '@playwright/test'
|
|
2
2
|
|
|
3
|
-
import { SITE_URL, TIMEOUT } from '
|
|
3
|
+
import { SITE_URL, TIMEOUT } from './e2e/utils/constants' // importing from `src` or using the `#tests` path does not work because downstream consumers of this package typically cannot resolve those paths
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Read environment variables from file.
|