mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
37116a2b12
* move util function to util module * move playwright config file to tracker dir root * update Playwright + add gitignores * Playwright: enable reuseExistingServer (non-CI env) * store tracker src copies to avoid re-compilation in dev env * test pageleave on simple navigation * fix test util fn * rename local_test npm script * make test util able to expect multiple requests * test pageleaves in SPAs * test pageleave with manual URL * test pageleave not sent in manual when pageview not triggered * extend util fn to refute event requests * test pageleaves not sent in excluded hash pages * store hashes instead of file copies to detect /tracker/src changes * drop async * speed up test suite
23 lines
583 B
JSON
23 lines
583 B
JSON
{
|
|
"scripts": {
|
|
"deploy": "node compile.js",
|
|
"test": "npm run deploy && npx playwright test",
|
|
"test:local": "NODE_ENV=dev npm run deploy && npx playwright test",
|
|
"report-sizes": "node report-sizes.js",
|
|
"start": "node test/support/server.js"
|
|
},
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"express": "^4.18.1",
|
|
"generatorics": "^1.1.0",
|
|
"handlebars": "^4.7.8",
|
|
"uglify-js": "^3.9.4"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.48.1",
|
|
"@types/node": "^22.7.7",
|
|
"eslint": "^8.56.0",
|
|
"eslint-plugin-playwright": "^0.20.0"
|
|
}
|
|
}
|