github.com/hyperledger/aries-framework-go@v0.3.2/test/aries-js-worker/karma.conf.js (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  module.exports = function (config) {
     8      config.set({
     9          frameworks: ["mocha", "chai"],
    10          browsers: ["ChromeHeadless_cors"],
    11          singleRun: true,
    12          files: [
    13              { pattern: "public/aries-framework-go/assets/*", included: false },
    14              {
    15                  pattern:
    16                      "node_modules/@hyperledger/aries-framework-go/dist/web/*",
    17                  type: "module",
    18              },
    19              {
    20                  pattern:
    21                      "node_modules/@hyperledger/aries-framework-go/dist/rest/*",
    22                  type: "module",
    23              },
    24              {
    25                  pattern: "node_modules/axios/dist/axios.min.map",
    26                  included: false,
    27              },
    28              "node_modules/axios/dist/axios.min.js",
    29              {
    30                  pattern: "node_modules/base64-js/base64js.min.js",
    31                  included: false,
    32              },
    33              {
    34                  pattern: "node_modules/base-58/Base58.js",
    35                  included: false,
    36              },
    37              { pattern: "test/common.js", included: false },
    38              { pattern: "test/environment.js", included: false },
    39              { pattern: "test/**/*.js", type: "module" },
    40          ],
    41          reporters: ["spec"],
    42          customLaunchers: {
    43              ChromeHeadless_cors: {
    44                  base: "ChromeHeadless",
    45                  flags: ["--disable-web-security"],
    46              },
    47              Chrome_without_security: {
    48                  base: "Chrome",
    49                  flags: [
    50                      "--disable-web-security",
    51                      "--disable-site-isolation-trials",
    52                      "--auto-open-devtools-for-tabs",
    53                  ],
    54              },
    55          },
    56          client: {
    57              mocha: {
    58                  timeout: 20000,
    59              },
    60          },
    61      });
    62  };