Skip to content
Permalink
Browse files

fix(karam): ensure the element under testing is traced by webpack

  • Loading branch information...
huochunpeng committed Mar 27, 2019
1 parent 05c5980 commit d6bab9dff3742c63401465f2840d7a8740b0c130
Showing with 8 additions and 0 deletions.
  1. +8 −0 skeleton/scaffold-minimum/test__if_karma_or_jest/unit/app.spec.ext
@@ -1,12 +1,20 @@
import {bootstrap} from 'aurelia-bootstrapper';
import {StageComponent} from 'aurelia-testing';
// @if feat.webpack
import {PLATFORM} from 'aurelia-pal';
// @endif

describe('Stage App Component', () => {
let component;

beforeEach(() => {
component = StageComponent
// @if feat.webpack
.withResources(PLATFORM.moduleName('app'))
// @endif
// @if feat['cli-bundler']
.withResources('app')
// @endif
.inView('<app></app>');
});

0 comments on commit d6bab9d

Please sign in to comment.
You can’t perform that action at this time.