Skip to content

Commit 19cd9ba

Browse files
STRMLclaude
andcommitted
chore(test): only disable Puppeteer sandbox in CI
The sandbox is only disabled when CI=true environment variable is set, allowing local development to run with full Chrome sandboxing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1d9fef7 commit 19cd9ba

File tree

3 files changed

+495
-435
lines changed

3 files changed

+495
-435
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,40 +43,40 @@
4343
},
4444
"homepage": "https://github.com/react-grid-layout/react-draggable",
4545
"devDependencies": {
46-
"@babel/cli": "^7.27.2",
47-
"@babel/core": "^7.27.4",
48-
"@babel/eslint-parser": "^7.27.5",
46+
"@babel/cli": "^7.28.3",
47+
"@babel/core": "^7.28.5",
48+
"@babel/eslint-parser": "^7.28.5",
4949
"@babel/plugin-transform-class-properties": "^7.27.1",
50-
"@babel/plugin-transform-flow-comments": "^7.27.3",
51-
"@babel/preset-env": "^7.27.2",
50+
"@babel/plugin-transform-flow-comments": "^7.28.5",
51+
"@babel/preset-env": "^7.28.5",
5252
"@babel/preset-flow": "^7.27.1",
53-
"@babel/preset-react": "^7.27.1",
54-
"@eslint/eslintrc": "^3.3.1",
55-
"@eslint/js": "^9.29.0",
53+
"@babel/preset-react": "^7.28.5",
54+
"@eslint/eslintrc": "^3.3.3",
55+
"@eslint/js": "^9.39.1",
5656
"@testing-library/dom": "^10.4.1",
5757
"@testing-library/react": "^16.3.0",
58-
"@types/node": "^24.0.4",
58+
"@types/node": "^24.10.2",
5959
"@types/react": "^18.2.23",
6060
"@types/react-dom": "^18.2.8",
6161
"@vitejs/plugin-react": "^5.1.2",
6262
"babel-loader": "^10.0.0",
6363
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
64-
"eslint": "^9.29.0",
64+
"eslint": "^9.39.1",
6565
"eslint-plugin-react": "^7.37.5",
6666
"flow-bin": "^0.217.0",
67-
"globals": "^16.2.0",
67+
"globals": "^16.5.0",
6868
"jsdom": "^27.3.0",
6969
"pre-commit": "^1.2.2",
7070
"process": "^0.11.10",
71-
"puppeteer": "^24.10.2",
71+
"puppeteer": "^24.32.1",
7272
"react": "18",
7373
"react-dom": "18",
7474
"react-frame-component": "^5.2.7",
7575
"react-test-renderer": "18",
76-
"semver": "^7.7.2",
77-
"typescript": "^5.8.3",
76+
"semver": "^7.7.3",
77+
"typescript": "^5.9.3",
7878
"vitest": "^4.0.15",
79-
"webpack": "^5.99.9",
79+
"webpack": "^5.103.0",
8080
"webpack-cli": "^6.0.1",
8181
"webpack-dev-server": "^5.2.2"
8282
},

test/browser/browser.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ describe('Browser Tests', () => {
1616
beforeAll(async () => {
1717
browser = await puppeteer.launch({
1818
headless: true,
19-
args: ['--no-sandbox', '--disable-setuid-sandbox'],
19+
// Disable sandbox in CI environments (required for GitHub Actions runners)
20+
args: process.env.CI ? ['--no-sandbox', '--disable-setuid-sandbox'] : [],
2021
});
2122
}, 30000);
2223

0 commit comments

Comments
 (0)