Skip to content

Not working with StaticLiveServerTestCase #95

@ipeterov

Description

@ipeterov

I wrote Playwright tests for my web app that uses django-vite. Currently, I have to run manage.py collectstatic every time I want to run my tests (if the frontend changed).

Django has a special tool for this use case - StaticLiveServerTestCase. It serves the static files right from STATICFILES_DIRS, allowing me to just run the tests without doing manage.py collectstatic.

When I'm running the tests, they are failing with a django-vite error:

Cannot find src/main.jsx in Vite manifest at /code/static/manifest.json

It looks like the error is originating here. I checked with a debugger, and self._manifest was None.

It would be cool to be able to use this Django feature with django-vite. How can I help to resolve/investigate the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions