aurelia / aurelia/framework

Staging a component for testing

Open
#942 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.7k
Forks
608
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a bug report**

* **Library Version:**
1.3.1

**Please tell us about your environment:**
* **Operating System:**
Linux (LinuxMint 19.2)

* **Node Version:**
10.16.1

* **NPM Version:**
6.9.0

* **Aurelia CLI OR JSPM OR Webpack AND Version**
JSPM 0.16.55

* **Browser:**
all

* **Language:**
TypeScript 3.6.3

**Current behavior:**
Executing the app and loading views with @useView('resources/panels/data-table-panel.html') works, but running a component test fails. Caused by 404 html-file not found.
By changing the path to @useView('src/resources/panels/data-table-panel.html') the component can be staged, which the leads to a 404 if the app gets started later by serving it with gulp.

![aurelia_file_tree](https://user-images.githubusercontent.com/532180/65953612-a04fbc80-e444-11e9-8b4a-517adb8f49ec.png)

![aurelia_stockvalue_custom_element](https://user-images.githubusercontent.com/532180/65953615-a0e85300-e444-11e9-8038-e4c957019267.png)

![aurelia_karma conf js](https://user-images.githubusercontent.com/532180/65953614-a04fbc80-e444-11e9-9364-0fea501c491b.png)

![aurelia_component spec ts](https://user-images.githubusercontent.com/532180/65953610-9fb72600-e444-11e9-9868-5d5fb8b68379.png)

![aurelia_gulp_tdd_output](https://user-images.githubusercontent.com/532180/65953613-a04fbc80-e444-11e9-9f52-8d54417a8272.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the component test described in the issue, then inspect the referenced Karma configuration and component spec alongside the @useView path. Compare the test setup with the gulp-served application and verify that the component test and running app both resolve the HTML view without a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.