Skip to content

Commit

Permalink
Update cypress to work with latest node
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinika committed Nov 7, 2024
1 parent 2241e63 commit 6040eee
Show file tree
Hide file tree
Showing 3 changed files with 284 additions and 225 deletions.
2 changes: 2 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default defineConfig({
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu',
NODE_TLS_REJECT_UNAUTHORIZED: 0,
},

setupNodeEvents(on, config) {
on('before:browser:launch', (browser, launchOptions) => {
launchOptions.args.push('--window-size=1920,1080');
Expand Down Expand Up @@ -148,6 +149,7 @@ export default defineConfig({
projectLabel,
resource: resourcePayload,
});
console.log('Created Resource', createdResource);
if (!createdResource) {
throw new Error('Test Resource was not created');
}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"@vitest/ui": "^1.1.1",
"browserify-zlib": "^0.2.0",
"css-loader": "^2.1.1",
"cypress": "^13.6.2",
"cypress": "^13.15.2",
"cypress-file-upload": "^5.0.8",
"esbuild": "^0.19.4",
"esbuild-node-tsc": "^2.0.5",
Expand Down Expand Up @@ -231,7 +231,8 @@
"resolutions": {
"d3-interpolate": "2.0.1",
"headers-polyfill": "3.0.10",
"history": "4.5.1"
"history": "4.5.1",
"canvas": "Automattic/node-canvas#master"
},
"overrides": {
"d3-interpolate": "2.0.1"
Expand Down
Loading

0 comments on commit 6040eee

Please sign in to comment.