Skip to content

Commit 78c2c8a

Browse files
committed
Cypress 14 fixup
1 parent ec81d1f commit 78c2c8a

16 files changed

+606
-163
lines changed

cypress.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
video: false,
5+
fixturesFolder: false,
6+
chromeWebSecurity: false,
7+
retries: {
8+
runMode: 0,
9+
},
10+
11+
e2e: {
12+
experimentalRunAllSpecs: true,
13+
testIsolation: false,
14+
setupNodeEvents(on, config) {},
15+
baseUrl: 'http://localhost:8080',
16+
},
17+
})

cypress.json

-10
This file was deleted.

cypress/integration/load.js cypress/e2e/load.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { AlpineVersion } = require('../support/index')
1+
const { AlpineVersion } = require('../support/e2e')
22
it('should load devtools', () => {
33
cy.visit('/')
44
// panel pre-Alpine loaded state
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cypress/integration/version.js cypress/e2e/version.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { AlpineVersion } = require('../support/index')
1+
const { AlpineVersion } = require('../support/e2e')
22

33
function overrideAlpineVersion(win, versionToOverride = undefined) {
44
const postMessage = win.postMessage.bind(win)
File renamed without changes.

cypress/support/e2e.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import './commands'
2+
3+
import { packages } from '../../package-lock.json'
4+
export const AlpineVersion = packages['node_modules/alpinejs'].version

cypress/support/index.js

-4
This file was deleted.

0 commit comments

Comments
 (0)