Skip to content

Scaffolding for unit testing #164

@josecelano

Description

@josecelano

I've been trying to setup Jest for unit testing.

Attempt: #159

I haven't been able so far. It seems it's not supported yet.

I think we should be able to write three types of tests:

  • Unit testing (the one I was trying to setup. I wanted to add tests for the sanitizer functions)
  • Integration (or whatever you wan to call them) where you can mount vue components, mock API requests, etcetera.
  • E2E tests. The one I've already set up with cypress and you can run with npm run cypress:run

Notes

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    - Developer -Torrust Improvement ExperienceHelp WantedMore Contributions are Appreciated

    Type

    No type

    Projects

    Status

    Help Wanted

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions