Problem with executing unit test

In my case it doesn’t work neither with “aurelia-framework” (info from documentation) nor “aurelia-pal” :frowning:

import {bootstrap} from 'aurelia-bootstrapper';
import {StageComponent} from 'aurelia-testing';
import {PLATFORM} from 'aurelia-pal';

describe('Testing nav-bar', () => {
    let component;
    let navBarBinding;

    beforeEach(() => {
        navBarBinding = {
            state: {
                showNav: false
            },
            nav: null
        };
        component = StageComponent
            .withResources(PLATFORM.moduleName('./app/nav-bar'))
            .inView('<nav-bar if.bind="navBarBinding.state.showNav" nav.bind="navBarBinding.nav"></nav-bar>')
            .boundTo(navBarBinding);
    });

    test('First try', async () => {
        await component.create(bootstrap);
        expect('3').toEqual('4');

    });
});

ReferenceError: __ webpack_require __ is not defined
Hint:
aurelia-loader-webpack.js:185:25

Could you Tomas check if in webpack.config you have included/used aurelia-testing?

EDIT:
I’ve taken your exmple Tomas (with my simple component) and still get webpack_require error :confused: