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

Added tests examples for nuxt/movies #83

Open
wants to merge 58 commits into
base: main
Choose a base branch
from

Conversation

Archetipo95
Copy link
Contributor

@Archetipo95 Archetipo95 commented Dec 17, 2024

📚 Description

✨ Added

  • Implemented GitHub Actions for running end-to-end (e2e) tests.
  • Implemented GitHub Actions for running unit tests.
  • Added env.example file to provide a template for environment variables.
  • Added vitest.config.ts for Vitest configuration.
  • Exposed utility functions and mocks for unit tests, including environment utilities.
  • Added a simple example case for end-to-end (e2e) testing.
  • Added playwright.config.ts for Playwright configuration.
  • Added new dependencies:
    • @nuxt/test-utils
    • @playwright/test
    • @vitest/coverage-v8
    • @vitest/ui
    • @vue/test-utils
    • happy-dom
    • playwright-core
    • vitest
  • Added scripts for running tests and for fixing ESLint issues.
  • Added unit tests for composables.
  • Added component tests for:
    • components/video/Card.vue
    • components/photo/Modal.vue
    • components/photo/Card.vue
    • components/person/Photos.vue
    • components/person/Info.vue
    • components/person/Details.vue
    • components/person/CreditsList.vue
    • components/person/Credits.vue
    • components/person/Card.vue
    • components/StarsRate.vue

👌 Changed

  • Updated pnpm to latest [email protected].
  • Disabled Prettier and on-save formatting in VSCode settings.
  • Updated .gitignore to include additional files and directories.
  • 📖 Changed the title in the README.md file.
  • Changed a property type to optional in types.ts to reflect the updated code.
  • Updated dependencies:
    • @antfu/eslint-config
    • @nuxt/devtools
    • @nuxt/image
    • @unocss/nuxt
    • @vueuse/nuxt
    • eslint
    • nuxt
    • typescript
    • vue-tsc

🐞 Fixed

  • Fixed issues in composables/utils.ts identified by unit tests.

🧹 Chores

  • Fixed files with ESLint.

docs: update README to reflect testing integration
Archetipo95 and others added 21 commits December 9, 2024 14:19
…h mockMedia in CreditsList tests for improved clarity
…ty with data-testid attributes

Co-authored-by: NicholasAntidormi <[email protected]>
Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

this is very exciting!

thank you for your work on this ❤️❤️❤️

.github/workflows/tests-e2e.yml Outdated Show resolved Hide resolved
Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

I'll leave it to @antfu to confirm, but it looks great to me! (I tested locally as the CI won't run until it merges)

what a great resource ❤️

@danielroe danielroe requested a review from antfu December 18, 2024 12:51
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.

2 participants