Skip to content

Commit 22e2557

Browse files
committed
build: add compatibility with dev containers
1 parent 95a6d56 commit 22e2557

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "foxy-elements",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm",
4+
"features": {
5+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
6+
"packages": "chromium"
7+
}
8+
},
9+
"forwardPorts": [8000],
10+
"postCreateCommand": "npm install"
11+
}

web-test-runner.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ import webServerConfig from './web-dev-server.config.js';
66
export default Object.assign({}, webServerConfig, {
77
browserLogs: false,
88

9-
browsers: [puppeteerLauncher()],
9+
browsers: [
10+
puppeteerLauncher({
11+
launchOptions: {
12+
executablePath: '/usr/bin/chromium',
13+
args: ['--no-sandbox', '--disable-setuid-sandbox'],
14+
},
15+
}),
16+
],
1017

1118
groups,
1219

0 commit comments

Comments
 (0)