UNPKG

create-tezos-smart-contract

Version:

Node.js toolset to write, test and deploy Tezos smart contracts

41 lines (33 loc) 1.26 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeJestConfig = void 0; const path_1 = __importDefault(require("path")); const makeJestConfig = () => (`/* * For a detailed explanation regarding each configuration property, visit: * https://jestjs.io/docs/configuration */ const { setupJestEnv } = require("${path_1.default.resolve(__dirname, '../../../modules/jest/env.js')}"); const config = { coverageProvider: "v8", // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. maxWorkers: "1", // The paths to modules that run some code to configure or set up the testing environment before each test setupFiles: [ "${path_1.default.resolve(__dirname, '../../../modules/jest/globals.js')}" ], }; module.exports = async () => { const globals = await setupJestEnv(); return { ...config, globals: { ...config.globals, ...globals, } }; }; `); exports.makeJestConfig = makeJestConfig;