Skip to content

Commit c219e2c

Browse files
committed
update tests with docker images and docker script
1 parent 5ef6bc1 commit c219e2c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

system-tests/scripts/bootstrap-docker-container.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export CYPRESS_CACHE_FOLDER=/tmp/CYPRESS_CACHE_FOLDER/
3636
export npm_config_cache=/tmp/npm_config_cache/
3737
export npm_config_package_lock=false
3838

39+
mkdir /tmp/npm_config_cache
40+
chown -R 1000:1000 /tmp/npm_config_cache
41+
3942
npx npm@latest install --unsafe-perm --allow-root --force file:$CLI_PATH
4043

4144
PATH=$PATH:./node_modules/.bin

system-tests/test-binary/node_versions_spec.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,20 @@ describe('binary node versions', () => {
3232
'cypress/base:17.3.0',
3333
].forEach(smokeTestDockerImage)
3434
})
35+
36+
describe('type: module', () => {
37+
[
38+
'cypress/base:16.17.0',
39+
'cypress/base:18.6.0',
40+
].forEach((dockerImage) => {
41+
systemTests.it(`can run in ${dockerImage}`, {
42+
withBinary: true,
43+
project: 'config-cjs-and-esm/config-with-ts-module',
44+
dockerImage,
45+
testingType: 'e2e',
46+
spec: 'app.cy.js',
47+
browser: 'electron',
48+
expectedExitCode: 0,
49+
})
50+
})
51+
})

0 commit comments

Comments
 (0)