Skip to content

Commit 5102ebc

Browse files
committed
chore: update karma config for hydration tests
1 parent afcd636 commit 5102ebc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"test:ci": "vitest run --workspace vitest.workspace.mjs --coverage",
2626
"test:karma": "nx test @lwc/integration-karma",
2727
"test:karma:start": "nx start @lwc/integration-karma",
28+
"test:hydration": "nx hydration:test @lwc/integration-karma",
2829
"test:hydration:start": "nx hydration:start @lwc/integration-karma",
2930
"test:integration": "nx sauce @lwc/integration-tests",
3031
"test:performance": "nx test @lwc/perf-benchmarks",

packages/@lwc/integration-karma/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"hydration:sauce:engine-server": "ENGINE_SERVER=true karma start ./scripts/karma-configs/hydration/sauce.js --single-run",
1111
"hydration:sauce:ci:engine-server": "ENGINE_SERVER=true ../../../scripts/ci/retry.sh karma start ./scripts/karma-configs/hydration/sauce.js --single-run",
1212
"hydration:start": "KARMA_MODE=watch karma start ./scripts/karma-configs/hydration/local.js",
13-
"hydration:test": "karma start ./scripts/karma-configs/hydration/local.js --single-run --browsers ChromeHeadless",
13+
"hydration:test": "karma start ./scripts/karma-configs/hydration/local.js --single-run",
1414
"hydration:sauce": "karma start ./scripts/karma-configs/hydration/sauce.js --single-run",
1515
"hydration:sauce:ci": "../../../scripts/ci/retry.sh karma start ./scripts/karma-configs/hydration/sauce.js --single-run",
1616
"sauce": "karma start ./scripts/karma-configs/test/sauce.js --single-run",

packages/@lwc/integration-karma/scripts/karma-configs/hydration/local.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module.exports = (config) => {
1414
config.set({
1515
reporters: [...config.reporters, 'progress'],
1616

17-
browsers: ['Chrome'],
17+
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
1818

19-
plugins: [...config.plugins, 'karma-chrome-launcher'],
19+
plugins: [...config.plugins, 'karma-chrome-launcher', 'karma-firefox-launcher'],
2020
});
2121
};

0 commit comments

Comments
 (0)