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

Move e2e out client #389

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Nalgritz
Copy link

@Nalgritz Nalgritz commented Jan 16, 2025

Context: Move e2e cypress app out of client

  • Make e2e lib typescript ready
  • Decouple dependencies between e2e and client

@Nalgritz Nalgritz mentioned this pull request Jan 16, 2025
Copy link

@acridlier acridlier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment but otherwise this works

poinz-e2e/package.json Show resolved Hide resolved
@@ -12,7 +12,7 @@
},
"scripts": {
"ft": "npm run format && npm t",
"format": "cd client/ && npm run format && cd ../server/ && npm run format && cd ../ && prettier --write \"build/*.mjs\" \"docu/**/*.mjs\" ",
"format": "cd client/ && npm run format && cd ../server/ && npm run format && cd ../poinz-e2e/ && npm run format && cd ../ && prettier --write \"build/*.mjs\" \"docu/**/*.mjs\" ",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note:
I think we could use npm workspace to simplify this. Then you could run npm run format --workspaces

And what does prettier --write "build/.mjs" "docu/**/.mjs" do?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prettier --write is to format files in glob pattern. The paths are js files to generate diagrams & build artifacts.

For introducing workspace, I've tested it and found the behaviours of installing dependencies would change. The dependencies of all packages would be centralised at root level. This change would also change the ways of deployment. I'd suggest to defer this decision until deployment revamp.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like CI/CD still fails, can you check pls, then I will merge it :)

@@ -20,6 +20,7 @@ import socketIo from 'socket.io-client';
* @return {string}
*/
export const tid = (...tid) => tid.map((t) => `[data-testid="${t}"]`).join(' ');
export const customNanoid = customAlphabet('0123456789abcdefghijklmnopqrstuvwxyz-_', 21);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question:
I assume you just copied this from import uuid from '../../app/services/uuid';?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. this is to isolate the dependency between current client util function and e2e package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants