I’m getting this error:
Error: Cannot find module ‘…\test\unit\childCustomElement\childCustomElement’ from ‘aurelia-loader-nodejs.js’.
parentComponent.html
<template> <require from="./childCustomElement/childCustomElement"></require> <child-custom-element if.bind="somethingTrue"></child-custom-element > </template>
parentComponent.spec.ts
describe(‘parentComponent’, () => {
let component;
beforeEach(() => {
component = StageComponent
.withResources(
PLATFORM.moduleName(‘…/…/src/views/parentComponent/parentComponent’))
.inView(‘<parent-component></parent-component>
’);
});
…
It normaly finds and renders “ChildCustomElement” when I run application, but for some reason my test fails. Why is trying to find “ChildCustomElement” at “…test/unit/” path?