module.exports = function()

in packages/network-navigator/wallaby.conf.js [27:54]


module.exports = function (wallaby) {
  return {
    // set `load: false` to all source files and tests processed by webpack
    // (except external files),
    // as they should not be loaded in browser,
    // their wrapped versions will be loaded instead
    files: [
      // {pattern: 'lib/jquery.js', instrument: false},
      {pattern: 'src/**/*.{js,ts,scss,json}', load: false},
      {pattern: 'base/**/*.{js,ts,scss,json}', load: false},
      {pattern: 'node_modules/css/*.{scss}', load: false},
      {pattern: '!src/**/*.spec.ts', load: false}
    ],

    tests: [
      {pattern: 'src/**/NetworkNavigator.spec.ts', load: false}
    ],

    postprocessor: wallabyPostprocessor,

    testFramework: "mocha",

    setup: function () {
      // required to trigger test loading
      window.__moduleBundler.loadTests();
    }
  };
};