[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/javascriptit/Zilliqa-JavaScript-Library/fix/abi/jest.config.js [Back]  [Original]

// Copyright (c) 2018 Zilliqa
// This source code is being disclosed to you solely for the purpose of your participation in
// testing Zilliqa. You may view, compile and run the code for that purpose and pursuant to
// the protocols and algorithms that are programmed into, and intended by, the code. You may
// not do anything else with the code without express permission from Zilliqa Research Pte. Ltd.,
// including modifying or publishing the code (or any part of it), and developing or forming
// another public or private blockchain network. This source code is provided as is and no
// warranties are given as to title or non-infringement, merchantability or fitness for purpose
// and, to the extent permitted by law, all liability for your use of the code is disclaimed.
const config = {
  transform: {
    '^.+\\.ts$': 'ts-jest',
  },
  testMatch: ['/packages/**/test/?(*.)+(spec|test).ts'],
  moduleDirectories: [
    'packages/*/src',
    '/includes',
    '/node_modules',
    '/*/node_modules',
  ],
  moduleFileExtensions: ['js', 'ts', 'node', 'json'],
  moduleNameMapper: {
    '^@zilliqa-js/zilliqa': '/packages/zilliqa/src/index.ts',
    '^@zilliqa-js/proto$': '/packages/zilliqa-js-proto/dist/index.js',
    '^@zilliqa-js/(.*)$': '/packages/zilliqa-js-$1/src/index.ts',
    'cross-fetch': 'jest-fetch-mock',
  },
  globals: {
    'ts-jest': {
      babelConfig: true,
      tsConfig: './tsconfig.test.json',
    },
  },
  testURL: 'http://localhost',
  collectCoverage: true,
  collectCoverageFrom: [
    '/packages/*/src/**/*.{ts,js}',
    '!**/node_modules/**',
  ],
  setupFiles: ['/jest-setup.js'],
  setupTestFrameworkScriptFile: '/jest-framework-setup.js',
  watchPlugins: [
    'jest-watch-typeahead/filename',
    'jest-watch-typeahead/testname',
  ],
};

module.exports = config;

Web Proxy Viewer  |  New URL  |  Original Page