From 0820fdf0a377514045c48cc1aa53ea23d0f4a020 Mon Sep 17 00:00:00 2001 From: Omkara <0mkar@protonmail.com> Date: Tue, 5 Feb 2019 20:15:39 +0530 Subject: [PATCH] remove dist directory from git --- remix-tests/dist/index.d.ts | 1 - remix-tests/dist/index.js | 15 --- remix-tests/dist/index.js.map | 1 - remix-tests/dist/runTestFiles.d.ts | 2 - remix-tests/dist/runTestFiles.js | 134 ----------------------- remix-tests/dist/runTestFiles.js.map | 1 - remix-tests/dist/runTestSources.d.ts | 2 - remix-tests/dist/runTestSources.js | 106 ------------------ remix-tests/dist/runTestSources.js.map | 1 - remix-tests/dist/testRunner.d.ts | 1 - remix-tests/dist/testRunner.js | 146 ------------------------- remix-tests/dist/testRunner.js.map | 1 - 12 files changed, 411 deletions(-) delete mode 100644 remix-tests/dist/index.d.ts delete mode 100644 remix-tests/dist/index.js delete mode 100644 remix-tests/dist/index.js.map delete mode 100644 remix-tests/dist/runTestFiles.d.ts delete mode 100644 remix-tests/dist/runTestFiles.js delete mode 100644 remix-tests/dist/runTestFiles.js.map delete mode 100644 remix-tests/dist/runTestSources.d.ts delete mode 100644 remix-tests/dist/runTestSources.js delete mode 100644 remix-tests/dist/runTestSources.js.map delete mode 100644 remix-tests/dist/testRunner.d.ts delete mode 100644 remix-tests/dist/testRunner.js delete mode 100644 remix-tests/dist/testRunner.js.map diff --git a/remix-tests/dist/index.d.ts b/remix-tests/dist/index.d.ts deleted file mode 100644 index cb0ff5c3b5..0000000000 --- a/remix-tests/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/remix-tests/dist/index.js b/remix-tests/dist/index.js deleted file mode 100644 index 379aae2270..0000000000 --- a/remix-tests/dist/index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var runTestFiles_1 = __importDefault(require("./runTestFiles")); -var runTestSources_1 = __importDefault(require("./runTestSources")); -var testRunner_1 = __importDefault(require("./testRunner")); -module.exports = { - runTestFiles: runTestFiles_1.default, - runTestSources: runTestSources_1.default, - runTest: testRunner_1.default, - assertLibCode: require('../sol/tests.sol.js') -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/remix-tests/dist/index.js.map b/remix-tests/dist/index.js.map deleted file mode 100644 index 6e20c6b110..0000000000 --- a/remix-tests/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,gEAAyC;AACzC,oEAA6C;AAC7C,4DAAkC;AAElC,MAAM,CAAC,OAAO,GAAG;IACf,YAAY,EAAE,sBAAY;IAC1B,cAAc,EAAE,wBAAc;IAC9B,OAAO,EAAE,oBAAO;IAChB,aAAa,EAAE,OAAO,CAAC,qBAAqB,CAAC;CAC9C,CAAA"} \ No newline at end of file diff --git a/remix-tests/dist/runTestFiles.d.ts b/remix-tests/dist/runTestFiles.d.ts deleted file mode 100644 index 3d69ac0fe3..0000000000 --- a/remix-tests/dist/runTestFiles.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function runTestFiles(filepath: any, isDirectory: any, web3: any, opts: any): void; -export = runTestFiles; diff --git a/remix-tests/dist/runTestFiles.js b/remix-tests/dist/runTestFiles.js deleted file mode 100644 index bfda4e5843..0000000000 --- a/remix-tests/dist/runTestFiles.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var async = require("async"); -var path = require("path"); -var fs = require("./fs"); -var testRunner_1 = __importDefault(require("./testRunner")); -require('colors'); -var Compiler = require("./compiler.js"); -var Deployer = require("./deployer.js"); -function runTestFiles(filepath, isDirectory, web3, opts) { - opts = opts || {}; - var Signale = require('signale').Signale; - // signale configuration - var options = { - types: { - result: { - badge: '\t✓', - label: '', - color: 'greenBright' - }, - name: { - badge: '\n\t◼', - label: '', - color: 'white' - }, - error: { - badge: '\t✘', - label: '', - color: 'redBright' - } - } - }; - var signale = new Signale(options); - var accounts = opts.accounts || null; - async.waterfall([ - function getAccountList(next) { - if (accounts) - return next(null); - web3.eth.getAccounts(function (_err, _accounts) { - accounts = _accounts; - next(null); - }); - }, - function compile(next) { - Compiler.compileFileOrFiles(filepath, isDirectory, { accounts: accounts }, next); - }, - function deployAllContracts(compilationResult, next) { - Deployer.deployAll(compilationResult, web3, function (err, contracts) { - if (err) { - next(err); - } - next(null, compilationResult, contracts); - }); - }, - function determineTestContractsToRun(compilationResult, contracts, next) { - var contractsToTest = []; - var contractsToTestDetails = []; - var gatherContractsFrom = function (filename) { - if (filename.indexOf('_test.sol') < 0) { - return; - } - Object.keys(compilationResult[path.basename(filename)]).forEach(function (contractName) { - contractsToTest.push(contractName); - contractsToTestDetails.push(compilationResult[path.basename(filename)][contractName]); - }); - }; - if (isDirectory) { - fs.walkSync(filepath, function (foundpath) { - gatherContractsFrom(foundpath); - }); - } - else { - gatherContractsFrom(filepath); - } - next(null, contractsToTest, contractsToTestDetails, contracts); - }, - function runTests(contractsToTest, contractsToTestDetails, contracts, next) { - var totalPassing = 0; - var totalFailing = 0; - var totalTime = 0; - var errors = []; - var testCallback = function (result) { - if (result.type === 'contract') { - signale.name(result.value.white); - } - else if (result.type === 'testPass') { - signale.result(result.value); - } - else if (result.type === 'testFailure') { - signale.result(result.value.red); - errors.push(result); - } - }; - var resultsCallback = function (_err, result, cb) { - totalPassing += result.passingNum; - totalFailing += result.failureNum; - totalTime += result.timePassed; - cb(); - }; - async.eachOfLimit(contractsToTest, 1, function (contractName, index, cb) { - testRunner_1.default(contractName, contracts(contractName), contractsToTestDetails[index], { accounts: accounts }, testCallback, function (err, result) { - if (err) { - return cb(err); - } - resultsCallback(null, result, cb); - }); - }, function (err) { - if (err) { - return next(err); - } - console.log('\n'); - if (totalPassing > 0) { - console.log(('%c ' + totalPassing + ' passing ') + ('%c(' + totalTime + 's)'), 'color: green', 'color: grey'); - } - if (totalFailing > 0) { - console.log(('%c ' + totalFailing + ' failing'), 'color: red'); - } - console.log(''); - errors.forEach(function (error, index) { - console.log(' ' + (index + 1) + ') ' + error.context + ' ' + error.value); - console.log(''); - console.log(('%c\t error: ' + error.errMsg), 'color: red'); - }); - console.log(''); - next(); - }); - } - ], function () { - }); -} -module.exports = runTestFiles; -//# sourceMappingURL=runTestFiles.js.map \ No newline at end of file diff --git a/remix-tests/dist/runTestFiles.js.map b/remix-tests/dist/runTestFiles.js.map deleted file mode 100644 index 32df333311..0000000000 --- a/remix-tests/dist/runTestFiles.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runTestFiles.js","sourceRoot":"","sources":["../src/runTestFiles.ts"],"names":[],"mappings":";;;;AAAA,6BAA+B;AAC/B,2BAA6B;AAC7B,yBAA2B;AAC3B,4DAAkC;AAClC,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEjB,wCAA0C;AAC1C,wCAA0C;AAE1C,SAAS,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI;IACnD,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;IACT,IAAA,oCAAO,CAAuB;IACtC,wBAAwB;IACxB,IAAM,OAAO,GAAG;QACZ,KAAK,EAAE;YACH,MAAM,EAAE;gBACJ,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,aAAa;aACvB;YACD,IAAI,EAAE;gBACF,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,OAAO;aACjB;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,WAAW;aACrB;SACJ;KACJ,CAAA;IACD,IAAM,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACpC,IAAI,QAAQ,GAAG,IAAI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AAK,CAAC,OAAO,GAAG,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;oBAC1E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;oBACf,OAAO,CAAC,GAAG,CAAC,CAAC,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,YAAY,CAAC,CAAA;gBAC7D,CAAC,CAAC,CAAA;gBACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBAEf,IAAI,EAAE,CAAA;YACV,CAAC,CAAC,CAAA;QACN,CAAC;KACJ,EAAE;IACH,CAAC,CAAC,CAAA;AACN,CAAC;AAED,iBAAS,YAAY,CAAC"} \ No newline at end of file diff --git a/remix-tests/dist/runTestSources.d.ts b/remix-tests/dist/runTestSources.d.ts deleted file mode 100644 index cd355186f4..0000000000 --- a/remix-tests/dist/runTestSources.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function runTestSources(contractSources: any, testCallback: any, resultCallback: any, finalCallback: any, importFileCb: any, opts: any): void; -export = runTestSources; diff --git a/remix-tests/dist/runTestSources.js b/remix-tests/dist/runTestSources.js deleted file mode 100644 index 4464b34ba0..0000000000 --- a/remix-tests/dist/runTestSources.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var async_1 = __importDefault(require("async")); -require('colors'); -var Compiler = require("./compiler.js"); -var Deployer = require("./deployer.js"); -var testRunner_1 = __importDefault(require("./testRunner")); -var Web3 = require("web3"); -var remix_simulator_1 = __importDefault(require("remix-simulator")); -var createWeb3Provider = function () { - var web3 = new Web3(); - web3.setProvider(new remix_simulator_1.default()); - return web3; -}; -function runTestSources(contractSources, testCallback, resultCallback, finalCallback, importFileCb, opts) { - opts = opts || {}; - var web3 = opts.web3 || createWeb3Provider(); - var accounts = opts.accounts || null; - async_1.default.waterfall([ - function getAccountList(next) { - if (accounts) - return next(); - web3.eth.getAccounts(function (_err, _accounts) { - accounts = _accounts; - next(); - }); - }, - function compile(next) { - Compiler.compileContractSources(contractSources, importFileCb, next); - }, - function deployAllContracts(compilationResult, next) { - Deployer.deployAll(compilationResult, web3, function (err, contracts) { - if (err) { - next(err); - } - next(null, compilationResult, contracts); - }); - }, - function determineTestContractsToRun(compilationResult, contracts, next) { - var contractsToTest = []; - var contractsToTestDetails = []; - var _loop_1 = function (filename) { - if (filename.indexOf('_test.sol') < 0) { - return "continue"; - } - Object.keys(compilationResult[filename]).forEach(function (contractName) { - contractsToTestDetails.push(compilationResult[filename][contractName]); - contractsToTest.push(contractName); - }); - }; - for (var filename in compilationResult) { - _loop_1(filename); - } - next(null, contractsToTest, contractsToTestDetails, contracts); - }, - function runTests(contractsToTest, contractsToTestDetails, contracts, next) { - var totalPassing = 0; - var totalFailing = 0; - var totalTime = 0; - var errors = []; - var _testCallback = function (result) { - if (result.type === 'testFailure') { - errors.push(result); - } - testCallback(result); - }; - var _resultsCallback = function (_err, result, cb) { - resultCallback(_err, result, function () { }); - totalPassing += result.passingNum; - totalFailing += result.failureNum; - totalTime += result.timePassed; - cb(); - }; - async_1.default.eachOfLimit(contractsToTest, 1, function (contractName, index, cb) { - testRunner_1.default(contractName, contracts(contractName), contractsToTestDetails[index], { accounts: accounts }, _testCallback, function (err, result) { - if (err) { - return cb(err); - } - _resultsCallback(null, result, cb); - }); - }, function (err) { - if (err) { - return next(err); - } - var finalResults = { - totalPassing: 0, - totalFailing: 0, - totalTime: 0, - errors: [], - }; - finalResults.totalPassing = totalPassing || 0; - finalResults.totalFailing = totalFailing || 0; - finalResults.totalTime = totalTime || 0; - finalResults.errors = []; - errors.forEach(function (error, _index) { - finalResults.errors.push({ context: error.context, value: error.value, message: error.errMsg }); - }); - next(null, finalResults); - }); - } - ], finalCallback); -} -module.exports = runTestSources; -//# sourceMappingURL=runTestSources.js.map \ No newline at end of file diff --git a/remix-tests/dist/runTestSources.js.map b/remix-tests/dist/runTestSources.js.map deleted file mode 100644 index 40031168ac..0000000000 --- a/remix-tests/dist/runTestSources.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runTestSources.js","sourceRoot":"","sources":["../src/runTestSources.ts"],"names":[],"mappings":";;;;AAAA,gDAAyB;AACzB,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEjB,wCAA0C;AAC1C,wCAA0C;AAC1C,4DAAkC;AAElC,2BAA6B;AAC7B,oEAAsC;AAStC,IAAI,kBAAkB,GAAG;IACrB,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;IACrB,IAAI,CAAC,WAAW,CAAC,IAAI,yBAAQ,EAAE,CAAC,CAAA;IAChC,OAAO,IAAI,CAAA;AACf,CAAC,CAAA;AAED,SAAS,cAAc,CAAC,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI;IACpG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;IACjB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,kBAAkB,EAAE,CAAA;IAC5C,IAAI,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAA;IACpC,eAAK,CAAC,SAAS,CAAC;QACZ,SAAS,cAAc,CAAE,IAAI;YACzB,IAAI,QAAQ;gBAAE,OAAO,IAAI,EAAE,CAAA;YAC3B,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,UAAC,IAAI,EAAE,SAAS;gBACjC,QAAQ,GAAG,SAAS,CAAA;gBACpB,IAAI,EAAE,CAAA;YACV,CAAC,CAAC,CAAA;QACN,CAAC;QACD,SAAS,OAAO,CAAE,IAAI;YAClB,QAAQ,CAAC,sBAAsB,CAAC,eAAe,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;QACxE,CAAC;QACD,SAAS,kBAAkB,CAAE,iBAAiB,EAAE,IAAI;YAChD,QAAQ,CAAC,SAAS,CAAC,iBAAiB,EAAE,IAAI,EAAE,UAAU,GAAG,EAAE,SAAS;gBAChE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IAAI,CAAC,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,EAAC,CAAC,CAAA;gBACjG,CAAC,CAAC,CAAA;gBAEF,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;YAC5B,CAAC,CAAC,CAAA;QACN,CAAC;KACJ,EAAE,aAAa,CAAC,CAAA;AACrB,CAAC;AACD,iBAAS,cAAc,CAAC"} \ No newline at end of file diff --git a/remix-tests/dist/testRunner.d.ts b/remix-tests/dist/testRunner.d.ts deleted file mode 100644 index 4180f9ddd3..0000000000 --- a/remix-tests/dist/testRunner.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function runTest(testName: any, testObject: any, contractDetails: any, opts: any, testCallback: Function, resultsCallback: Function): void; diff --git a/remix-tests/dist/testRunner.js b/remix-tests/dist/testRunner.js deleted file mode 100644 index 5ff7461016..0000000000 --- a/remix-tests/dist/testRunner.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var async_1 = __importDefault(require("async")); -var changeCase = __importStar(require("change-case")); -var web3_1 = __importDefault(require("web3")); -function getFunctionFullName(signature, methodIdentifiers) { - for (var method in methodIdentifiers) { - if (signature.replace('0x', '') === methodIdentifiers[method].replace('0x', '')) { - return method; - } - } - return null; -} -function getOverridedSender(userdoc, signature, methodIdentifiers) { - var fullName = getFunctionFullName(signature, methodIdentifiers); - var match = /sender: account-+(\d)/g; - var accountIndex = userdoc.methods[fullName] ? match.exec(userdoc.methods[fullName].notice) : null; - return fullName && accountIndex ? accountIndex[1] : null; -} -function getAvailableFunctions(jsonInterface) { - return jsonInterface.reverse().filter(function (x) { return x.type === 'function'; }).map(function (x) { return x.name; }); -} -function getTestFunctions(jsonInterface) { - var specialFunctions = ['beforeAll', 'beforeEach', 'afterAll', 'afterEach']; - return jsonInterface.filter(function (x) { return specialFunctions.indexOf(x.name) < 0 && x.type === 'function'; }); -} -function createRunList(jsonInterface) { - var availableFunctions = getAvailableFunctions(jsonInterface); - var testFunctions = getTestFunctions(jsonInterface); - var runList = []; - if (availableFunctions.indexOf('beforeAll') >= 0) { - runList.push({ name: 'beforeAll', type: 'internal', constant: false }); - } - for (var _i = 0, testFunctions_1 = testFunctions; _i < testFunctions_1.length; _i++) { - var func = testFunctions_1[_i]; - if (availableFunctions.indexOf('beforeEach') >= 0) { - runList.push({ name: 'beforeEach', type: 'internal', constant: false }); - } - runList.push({ name: func.name, signature: func.signature, type: 'test', constant: func.constant }); - if (availableFunctions.indexOf('afterEach') >= 0) { - runList.push({ name: 'afterEach', type: 'internal', constant: false }); - } - } - if (availableFunctions.indexOf('afterAll') >= 0) { - runList.push({ name: 'afterAll', type: 'internal', constant: false }); - } - return runList; -} -function runTest(testName, testObject, contractDetails, opts, testCallback, resultsCallback) { - var runList = createRunList(testObject._jsonInterface); - var passingNum = 0; - var failureNum = 0; - var timePassed = 0; - var web3 = new web3_1.default(); - var userAgent = (typeof (navigator) !== 'undefined') && navigator.userAgent ? navigator.userAgent.toLowerCase() : '-'; - var isBrowser = !(typeof (window) === 'undefined' || userAgent.indexOf(' electron/') > -1); - if (!isBrowser) { - var signale = require('signale'); - signale.warn('DO NOT TRY TO ACCESS (IN YOUR SOLIDITY TEST) AN ACCOUNT GREATER THAN THE LENGTH OF THE FOLLOWING ARRAY (' + opts.accounts.length + ') :'); - signale.warn(opts.accounts); - signale.warn('e.g: the following code won\'t work in the current context:'); - signale.warn('TestsAccounts.getAccount(' + opts.accounts.length + ')'); - } - testCallback({ type: 'contract', value: testName, filename: testObject.filename }); - async_1.default.eachOfLimit(runList, 1, function (func, index, next) { - var sender; - if (func.signature) { - sender = getOverridedSender(contractDetails.userdoc, func.signature, contractDetails.evm.methodIdentifiers); - if (opts.accounts) { - sender = opts.accounts[sender]; - } - } - var sendParams; - if (sender) - sendParams = { from: sender }; - var method = testObject.methods[func.name].apply(testObject.methods[func.name], []); - var startTime = Date.now(); - if (func.constant) { - method.call(sendParams).then(function (result) { - var time = Math.ceil((Date.now() - startTime) / 1000.0); - if (result) { - testCallback({ type: 'testPass', value: changeCase.sentenceCase(func.name), time: time, context: testName }); - passingNum += 1; - timePassed += time; - } - else { - testCallback({ type: 'testFailure', value: changeCase.sentenceCase(func.name), time: time, errMsg: 'function returned false', context: testName }); - failureNum += 1; - } - next(); - }); - } - else { - method.send(sendParams).on('receipt', function (receipt) { - try { - var time = Math.ceil((Date.now() - startTime) / 1000.0); - var topic = web3_1.default.utils.sha3('AssertionEvent(bool,string)'); - var testPassed = false; - for (var i in receipt.events) { - var event_1 = receipt.events[i]; - if (event_1.raw.topics.indexOf(topic) >= 0) { - var testEvent = web3.eth.abi.decodeParameters(['bool', 'string'], event_1.raw.data); - if (!testEvent[0]) { - testCallback({ type: 'testFailure', value: changeCase.sentenceCase(func.name), time: time, errMsg: testEvent[1], context: testName }); - failureNum += 1; - return next(); - } - testPassed = true; - } - } - if (testPassed) { - testCallback({ type: 'testPass', value: changeCase.sentenceCase(func.name), time: time, context: testName }); - passingNum += 1; - } - return next(); - } - catch (err) { - console.log('error!'); - console.dir(err); - return next(err); - } - }).on('error', function (err) { - console.error(err); - next(err); - }); - } - }, function (error) { - resultsCallback(error, { - passingNum: passingNum, - failureNum: failureNum, - timePassed: timePassed - }); - }); -} -exports.default = runTest; -//# sourceMappingURL=testRunner.js.map \ No newline at end of file diff --git a/remix-tests/dist/testRunner.js.map b/remix-tests/dist/testRunner.js.map deleted file mode 100644 index ce7a01b128..0000000000 --- a/remix-tests/dist/testRunner.js.map +++ /dev/null @@ -1 +0,0 @@ -{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