Try to create a typescript version of remix-tests module

pull/7/head
0mkar 6 years ago
parent bd53e88ed5
commit 5a79d1ba06
  1. 6
      remix-tests/package.json
  2. 10
      remix-tests/src/index.ts
  3. 0
      remix-tests/src/runTestFiles.ts
  4. 0
      remix-tests/src/runTestSources.ts
  5. 0
      remix-tests/src/testRunner.ts

@ -2,7 +2,8 @@
"name": "remix-tests",
"version": "0.1.1",
"description": "Tests for the Ethereum tool suite Remix",
"main": "./src/index.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"contributors": [
{
"name": "Iuri Matias",
@ -17,8 +18,9 @@
"remix-tests": "./bin/remix-tests"
},
"scripts": {
"build": "tsc",
"lint": "standard",
"test": "standard && mocha tests/ -t 300000"
"test": "standard && mocha --require ts-node/register tests/*.ts -t 300000"
},
"repository": {
"type": "git",

@ -0,0 +1,10 @@
import runTestFiles from './runTestFiles.ts'
import runTestSources from './runTestSources.ts'
import TestRunner from './testRunner.ts'
module.exports = {
runTestFiles: runTestFiles,
runTestSources: runTestSources,
runTest: TestRunner.runTest,
assertLibCode: require('../sol/tests.sol.js')
}
Loading…
Cancel
Save