Skip to content

Vite test failure: assets.spec.ts build watch raw query import #8839

@Boshen

Description

@Boshen

CI Failure

https://github.com/rolldown/rolldown/actions/runs/23382731682/job/68024743840

Failing Test

playground/assets/__tests__/assets.spec.ts > css and assets in css in build watch > import with raw query

Suite: test-build

Error

AssertionError: expected 'foo' to be 'zoo' // Object.is equality

Expected: "zoo"
Received: "foo"

 ❯ playground/assets/__tests__/assets.spec.ts:721:50
    719|     await notifyRebuildComplete(watcher)
    720|     await page.reload()
    721|     expect(await page.textContent('.raw-query')).toBe('zoo')
       |                                                  ^
    722|   })
    723| })

Build watch does not pick up file changes for raw query imports — the content remains 'foo' instead of updating to 'zoo'.

Workaround

Skipped in #8840.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions