Skip to content

Commit 4adbcde

Browse files
chore(deps-dev): bump cypress from 6.8.0 to 7.1.0 (#207)
* chore(deps-dev): bump cypress from 6.8.0 to 7.1.0 Bumps [cypress](https://github.com/cypress-io/cypress) from 6.8.0 to 7.1.0. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js) - [Commits](cypress-io/cypress@v6.8.0...v7.1.0) Signed-off-by: dependabot[bot] <support@github.com> * fix intercept call Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Hugo Di Francesco <HugoDF@users.noreply.github.com>
1 parent da74871 commit 4adbcde

4 files changed

Lines changed: 69 additions & 104 deletions

File tree

cypress/integration/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ it('should display message with latest Alpine version from npm registry', () =>
8484
overrideAlpineVersion(win, '4.0.0')
8585
},
8686
})
87-
.intercept('https://registry.npmjs.com/alpinejs', {
87+
.intercept('GET', 'https://registry.npmjs.com/alpinejs', {
8888
headers: {
8989
'Access-Control-Allow-Origin': 'http://localhost:8080',
9090
},

package-lock.json

Lines changed: 61 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@tailwindcss/forms": "^0.3.2",
2727
"@tailwindcss/jit": "^0.1.18",
2828
"alpinejs": "^2.8.2",
29-
"cypress": "^6.8.0",
29+
"cypress": "^7.1.0",
3030
"cypress-iframe": "^1.0.1",
3131
"edge.js": "^4.0.4",
3232
"esm": "^3.2.25",

packages/shell-chrome/src/backend.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ function init() {
156156
return false
157157
}
158158
}
159-
this.components = alpineRoots.map((rootEl, index) => {
159+
160+
this.components = []
161+
162+
alpineRoots.forEach((rootEl, index) => {
160163
if (!rootEl.__x) {
161164
// this component probably crashed during init
162165
return
@@ -191,12 +194,12 @@ function init() {
191194
return depth
192195
}, 0)
193196

194-
return {
197+
this.components.push({
195198
name: getComponentName(rootEl),
196199
depth: componentDepth,
197200
index,
198201
id: rootEl.__alpineDevtool.id,
199-
}
202+
})
200203
})
201204

202205
this._postMessage({

0 commit comments

Comments
 (0)