Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.4] Move the Cypress Tests to ESM #43676

Merged
merged 12 commits into from
Jun 24, 2024
Merged

Conversation

LadySolveig
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

  • Move to ESM (no require())
  • use .mjs for the esm modules

Thank you @dgrammatiko - This is only the continuition of the PR #42939 backported to 4.4 so we can upmerge in 5.1 and 5.2

Testing Instructions

Review and passing automated tests

Actual result BEFORE applying this Pull Request

Tests pass

Expected result AFTER applying this Pull Request

Tests pass

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@laoneo
Copy link
Member

laoneo commented Jun 20, 2024

Thanks as I really like the change. I'm merging this as last one when the other system test pr's are merged, so we have no conflicts in them.

@laoneo laoneo self-assigned this Jun 20, 2024
@laoneo laoneo added this to the Joomla! 4.4.6 milestone Jun 24, 2024
@laoneo laoneo merged commit 08da6c9 into joomla:4.4-dev Jun 24, 2024
3 checks passed
@laoneo
Copy link
Member

laoneo commented Jun 24, 2024

Thanks!

alikon added a commit to alikon/joomla-cms that referenced this pull request Jun 25, 2024
laoneo pushed a commit that referenced this pull request Jun 25, 2024
muhme added a commit to muhme/joomla-cms that referenced this pull request Jun 25, 2024
After PR joomla#43676 '[4.4] Move the Cypress Tests to ESM' the cypress config file is renamed to `.mjs`.
This PR is for updating README and architecture pictures.
@muhme muhme mentioned this pull request Jun 25, 2024
4 tasks
muhme added a commit to muhme/joomla-cms that referenced this pull request Jun 25, 2024
With PR joomla#43676 '[4.4] Move the Cypress Tests to ESM' the Cypress config file is changed to `cypress.config.mjs`.
There are places in source code tree with the old file names `*.js`, that are handled by:
1. In the script used to build Joomla distribution archive packages, in the ignore file list, the Cypress config file name has been changed to the new `.mjs`.
2. In the delete-file-that-should-not-exist list, `cypress.config.mjs`and `cypress.config.dist.mjs` have been added.
@muhme muhme mentioned this pull request Jun 25, 2024
4 tasks
laoneo pushed a commit that referenced this pull request Jun 26, 2024
* [cypress] Update doc for cypress.config.[dist].mjs

After PR #43676 '[4.4] Move the Cypress Tests to ESM' the cypress config file is renamed to `.mjs`.
This PR is for updating README and architecture pictures.

* Update Code sample defaultCommandTimeout

Update with Cypress defineConfig() syntax for new ESM

* Explicit name cypress.config.mjs and use npm run

1. Error messages still mention `cypress.config.js`, e.g. on EADDRINUSE,
even there is only `cypress.config.mjs` exisiting:
```
Your configFile threw an error from: cypress.config.js
```

This is avoided for `npm run cypress` by explicitly specifying the name `cypress.config.mjs`.

2. As this does not work for `npx cypress`, all given commands are changed to use `npm run cypress`.
laoneo pushed a commit that referenced this pull request Jun 26, 2024
* [4.4] Update file lists for cypress.config*.mjs

With PR #43676 '[4.4] Move the Cypress Tests to ESM' the Cypress config file is changed to `cypress.config.mjs`.
There are places in source code tree with the old file names `*.js`, that are handled by:
1. In the script used to build Joomla distribution archive packages, in the ignore file list, the Cypress config file name has been changed to the new `.mjs`.
2. In the delete-file-that-should-not-exist list, `cypress.config.mjs`and `cypress.config.dist.mjs` have been added.

* Fix typo

* Reverted script.php add-ons

See Conversation #43703 (comment)
@muhme muhme mentioned this pull request Jul 2, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants