mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
test: add browser tests for sds (#2527)
* tests: add browser tests for sds * test: use FIREFOX_BIN if set
This commit is contained in:
parent
449797d5c1
commit
52e5c34520
@ -6,7 +6,10 @@ if (!process.env.CHROME_BIN) {
|
|||||||
process.env.CHROME_BIN = playwright.chromium.executablePath();
|
process.env.CHROME_BIN = playwright.chromium.executablePath();
|
||||||
}
|
}
|
||||||
console.log("Using CHROME_BIN:", process.env.CHROME_BIN);
|
console.log("Using CHROME_BIN:", process.env.CHROME_BIN);
|
||||||
|
if (!process.env.FIREFOX_BIN) {
|
||||||
process.env.FIREFOX_BIN = playwright.firefox.executablePath();
|
process.env.FIREFOX_BIN = playwright.firefox.executablePath();
|
||||||
|
}
|
||||||
|
console.log("Using FIREFOX_BIN:", process.env.FIREFOX_BIN);
|
||||||
|
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
const configuration = {
|
const configuration = {
|
||||||
|
|||||||
3
packages/sds/karma.conf.cjs
Normal file
3
packages/sds/karma.conf.cjs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
const config = require("../../karma.conf.cjs");
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
@ -53,7 +53,8 @@
|
|||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
|
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
|
||||||
"test": "NODE_ENV=test run-s test:*",
|
"test": "NODE_ENV=test run-s test:*",
|
||||||
"test:node": "NODE_ENV=test TS_NODE_PROJECT=./tsconfig.dev.json mocha"
|
"test:node": "NODE_ENV=test TS_NODE_PROJECT=./tsconfig.dev.json mocha",
|
||||||
|
"test:browser": "NODE_ENV=test karma start karma.conf.cjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22"
|
"node": ">=22"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user