Files
cypress/system-tests/test-binary/node_versions_spec.ts
Jennifer Shehane 056e6f6edd dependency: Electron 37 update (#32607)
* dependency: Electron 37 update

* bump min node

* Fix TS error

* Fix changelog location

* remove the example changelog as it obviously confused it

* add publish-binary branch

* update PR number in changelog

* run on all workflows

* fix types

* bump circle cache

* fix changelog numbers

* removed packages/changelog file

* Clarify minimum node + move some things around

* bump cache

* remove workflows

* build artifacts
2025-10-03 14:29:50 -04:00

60 lines
1.4 KiB
TypeScript

import systemTests from '../lib/system-tests'
function smokeTestDockerImage (dockerImage: string) {
context('e2e', () => {
systemTests.it(`can run in ${dockerImage}`, {
withBinary: true,
browser: 'electron',
dockerImage,
spec: 'test1.js',
specDir: 'tests',
project: 'todos',
})
})
context('component', () => {
systemTests.it(`can run in ${dockerImage}`, {
withBinary: true,
browser: 'electron',
dockerImage,
testingType: 'component',
project: 'simple-ct',
spec: 'src/simple_passing_component.cy.js',
})
})
}
describe('binary node versions', () => {
[
'cypress/base:20.12.2',
'cypress/base:20.18.0',
'cypress/base:22.0.0',
'cypress/base:22.7.0',
'cypress/base:22.12.0',
'cypress/base:22.19.0',
'cypress/base:24.0.0',
].forEach(smokeTestDockerImage)
})
describe('type: module', () => {
[
'cypress/base:20.12.2',
'cypress/base:20.18.0',
'cypress/base:22.0.0',
'cypress/base:22.7.0',
'cypress/base:22.12.0',
'cypress/base:22.19.0',
'cypress/base:24.0.0',
].forEach((dockerImage) => {
systemTests.it(`can run in ${dockerImage}`, {
withBinary: true,
project: 'config-cjs-and-esm/config-with-ts-module',
dockerImage,
testingType: 'e2e',
spec: 'app.cy.js',
browser: 'electron',
expectedExitCode: 0,
})
})
})