From 1edeaa3b8a4ebda4c6030513972ecd3d2529b2db Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 30 Nov 2020 16:38:20 +0530 Subject: [PATCH] test files in ts --- libs/remix-lib/test/{eventManager.js => eventManager.ts} | 0 libs/remix-lib/test/{init.js => init.ts} | 0 libs/remix-lib/test/{tests.js => tests.ts} | 0 libs/remix-lib/test/{txFormat.js => txFormat.ts} | 2 +- libs/remix-lib/test/{txHelper.js => txHelper.ts} | 0 libs/remix-lib/test/{txResultHelper.js => txResultHelper.ts} | 0 libs/remix-lib/test/{util.js => util.ts} | 0 libs/remix-lib/tsconfig.lib.json | 5 ++++- 8 files changed, 5 insertions(+), 2 deletions(-) rename libs/remix-lib/test/{eventManager.js => eventManager.ts} (100%) rename libs/remix-lib/test/{init.js => init.ts} (100%) rename libs/remix-lib/test/{tests.js => tests.ts} (100%) rename libs/remix-lib/test/{txFormat.js => txFormat.ts} (99%) rename libs/remix-lib/test/{txHelper.js => txHelper.ts} (100%) rename libs/remix-lib/test/{txResultHelper.js => txResultHelper.ts} (100%) rename libs/remix-lib/test/{util.js => util.ts} (100%) diff --git a/libs/remix-lib/test/eventManager.js b/libs/remix-lib/test/eventManager.ts similarity index 100% rename from libs/remix-lib/test/eventManager.js rename to libs/remix-lib/test/eventManager.ts diff --git a/libs/remix-lib/test/init.js b/libs/remix-lib/test/init.ts similarity index 100% rename from libs/remix-lib/test/init.js rename to libs/remix-lib/test/init.ts diff --git a/libs/remix-lib/test/tests.js b/libs/remix-lib/test/tests.ts similarity index 100% rename from libs/remix-lib/test/tests.js rename to libs/remix-lib/test/tests.ts diff --git a/libs/remix-lib/test/txFormat.js b/libs/remix-lib/test/txFormat.ts similarity index 99% rename from libs/remix-lib/test/txFormat.js rename to libs/remix-lib/test/txFormat.ts index 9d897d53f4..b29ea2075d 100644 --- a/libs/remix-lib/test/txFormat.js +++ b/libs/remix-lib/test/txFormat.ts @@ -1,5 +1,5 @@ 'use strict' -const tape = require('tape') +import * as tape from 'tape' const txFormat = require('../src/execution/txFormat') const txHelper = require('../src/execution/txHelper') const util = require('../src/util') diff --git a/libs/remix-lib/test/txHelper.js b/libs/remix-lib/test/txHelper.ts similarity index 100% rename from libs/remix-lib/test/txHelper.js rename to libs/remix-lib/test/txHelper.ts diff --git a/libs/remix-lib/test/txResultHelper.js b/libs/remix-lib/test/txResultHelper.ts similarity index 100% rename from libs/remix-lib/test/txResultHelper.js rename to libs/remix-lib/test/txResultHelper.ts diff --git a/libs/remix-lib/test/util.js b/libs/remix-lib/test/util.ts similarity index 100% rename from libs/remix-lib/test/util.js rename to libs/remix-lib/test/util.ts diff --git a/libs/remix-lib/tsconfig.lib.json b/libs/remix-lib/tsconfig.lib.json index cec3d2b80c..ab14ec304e 100644 --- a/libs/remix-lib/tsconfig.lib.json +++ b/libs/remix-lib/tsconfig.lib.json @@ -8,7 +8,10 @@ "rootDir": "./", "types": ["node"] }, - "exclude": ["**/*.spec.js"], + "exclude": [ + "**/*.spec.js", + "test/" + ], "include": [ "src/**/*.js", "./index.js"