Skip to content

Commit d310bf4

Browse files
committed
Add Chromium flags
1 parent 2d404a3 commit d310bf4

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
module.exports = {
2-
server: {
3-
// In CI mode, run from built production version instead of the dev version.
4-
command: "serve -l 8080",
5-
port: 8080,
6-
usedPortAction: "kill"
7-
}
1+
const getConfig = require('jest-puppeteer-docker/lib/config');
2+
3+
const baseConfig = getConfig();
4+
const customConfig = Object.assign({}, baseConfig);
5+
6+
customConfig.server = {
7+
// In CI mode, run from built production version instead of the dev version.
8+
command: "serve -l 8080",
9+
port: 8080,
10+
usedPortAction: "kill"
811
};
12+
13+
customConfig.chromiumFlags = ['--font-render-hinting=none', '--enable-font-antialiasing'];
14+
15+
module.exports = customConfig;

0 commit comments

Comments
 (0)