Skip to content

Support Angular component testing with HTML file templates #15240

@NateRadebaugh

Description

@NateRadebaugh

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

  1. Clone repo, bun install

https://github.com/sp90/treaty

  1. Run bun test. Everything works and tests pass
  2. Move template HTML in post.component.ts to post.component HTML and update template URL to "./post.component.html"
  3. Run bun test

Did you run and wait for 'resolveComponentResources()'?

What is the expected behavior?

Expected: should work and tests pass

What do you see instead?

Actual: exception is thrown initialize component for testing

Did you run and wait for 'resolveComponentResources()'?

Additional information

I understand theoretically this may need a custom bun plugin to integrate with the Angular parser.

Prior art:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbun:testSomething related to the `bun test` runnerneeds investigateNeeds to be investigated to find the root cause

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions