Simple integration test which renders a component which has {{#link-to “routeabc” “model-name”}} fails with: index.js:175 Uncaught (in promise) Error: Assertion Failed: You attempted to generate a link for the “routeabc” route, but did not pass the models required for generating its dynamic segments. There is no route named routeabc . The test was passing prior to upgrade. The application works as its supposed to without any console errors after upgrade as well. Wondering if any router test setup is mandated after 3.24.
Fixed this with the below code in beforeEach:
this.owner.register('service:-routing', Service.extend({
currentRouteName: 'routeabc',
generateURL: () => {
return;
}
}));