webcomponent: add pixelmatch and pngjs dependencies; update e2e test script

This commit is contained in:
Carlos Santos 2025-06-06 11:10:58 +02:00
parent 8a99e6d998
commit c3dfe6cb24
2 changed files with 28 additions and 0 deletions

View File

@ -22,7 +22,9 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"pixelmatch": "^7.1.0",
"playwright": "^1.50.1",
"pngjs": "^7.0.0",
"rollup": "^4.34.8",
"rollup-plugin-postcss": "^4.0.2",
"ts-jest": "^29.2.5",
@ -7309,6 +7311,19 @@
"node": ">= 6"
}
},
"node_modules/pixelmatch": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-7.1.0.tgz",
"integrity": "sha512-1wrVzJ2STrpmONHKBy228LM1b84msXDUoAzVEl0R8Mz4Ce6EPr+IVtxm8+yvrqLYMHswREkjYFaMxnyGnaY3Ng==",
"dev": true,
"license": "ISC",
"dependencies": {
"pngjs": "^7.0.0"
},
"bin": {
"pixelmatch": "bin/pixelmatch"
}
},
"node_modules/pkg-dir": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
@ -7425,6 +7440,16 @@
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/pngjs": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz",
"integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=14.19.0"
}
},
"node_modules/possible-typed-array-names": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",

View File

@ -7,6 +7,7 @@
"build:watch": "npm install && rollup -c -w",
"test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci",
"test:e2e": "playwright test",
"test:e2e-core": "playwright test tests/e2e/core/",
"lint": "eslint 'src/**/*.ts'"
},
"keywords": [],
@ -27,7 +28,9 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"pixelmatch": "^7.1.0",
"playwright": "^1.50.1",
"pngjs": "^7.0.0",
"rollup": "^4.34.8",
"rollup-plugin-postcss": "^4.0.2",
"ts-jest": "^29.2.5",