Skip to content

Commit

Permalink
Consistent changes across karma config
Browse files Browse the repository at this point in the history
  • Loading branch information
rajsite committed Jan 22, 2025
1 parent 48debf7 commit 205957f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/utilities/fast-react-wrapper/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function (config) {
basePath,
browserDisconnectTimeout: 10000,
processKillTimeout: 10000,
frameworks: ["source-map-support", "mocha"],
frameworks: ["source-map-support", "mocha", "webpack"],
plugins: [
require("karma-mocha"),
require("karma-mocha-reporter"),
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/fast-web-utilities/karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function (config: any) {
basePath,
browserDisconnectTimeout: 10000,
processKillTimeout: 10000,
frameworks: ["source-map-support", "mocha"],
frameworks: ["source-map-support", "mocha", "webpack"],
plugins: [
require("karma-mocha"),
require("karma-mocha-reporter"),
Expand Down
5 changes: 3 additions & 2 deletions packages/web-components/fast-element/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = function (config) {
browsers = ["Chrome"];
}

const setup = "setup-browser" + (config.package ? "-" + config.package : "");
const options = {
basePath,
browserDisconnectTimeout: 10000,
Expand All @@ -42,9 +43,9 @@ module.exports = function (config) {
require("karma-chrome-launcher"),
require("karma-firefox-launcher"),
],
files: [`dist/esm/__test__/setup-browser.js`],
files: [`dist/esm/__test__/${setup}.js`],
preprocessors: {
[`dist/esm/__test__/setup-browser.js`]: ["webpack", "sourcemap"],
[`dist/esm/__test__/${setup}.js`]: ["webpack", "sourcemap"],
},
webpackMiddleware: {
// webpack-dev-middleware configuration
Expand Down
2 changes: 1 addition & 1 deletion packages/web-components/fast-foundation/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function (config) {
basePath,
browserDisconnectTimeout: 10000,
processKillTimeout: 10000,
frameworks: ["source-map-support", "mocha"],
frameworks: ["source-map-support", "mocha", "webpack"],
plugins: [
require("karma-mocha"),
require("karma-mocha-reporter"),
Expand Down

0 comments on commit 205957f

Please sign in to comment.