8000 Added tests examples for nuxt/movies by Archetipo95 · Pull Request #83 · nuxt/movies · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added tests examples for nuxt/movies #83

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

Merged
merged 58 commits into from
Apr 21, 2025
Merged

Added tests examples for nuxt/movies #83

merged 58 commits into from
Apr 21, 2025

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 pnpm@9.15.0.
  • 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 20 commits December 9, 2024 15:14
…h mockMedia in CreditsList tests for improved clarity
…ty with data-testid attributes

Co-authored-by: NicholasAntidormi <NicholasAntidormi@users.noreply.github.com>
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 ❤️❤️❤️

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
@danielroe danielroe merged commit f5fe30e into nuxt:main Apr 21, 2025
2 checks passed
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
0