Try to create a typescript version of remix-tests module

pull/5370/head
0mkar 6 years ago
parent 66a8a0393b
commit 59c999bd93
  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", "name": "remix-tests",
"version": "0.1.1", "version": "0.1.1",
"description": "Tests for the Ethereum tool suite Remix", "description": "Tests for the Ethereum tool suite Remix",
"main": "./src/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts",
"contributors": [ "contributors": [
{ {
"name": "Iuri Matias", "name": "Iuri Matias",
@ -17,8 +18,9 @@
"remix-tests": "./bin/remix-tests" "remix-tests": "./bin/remix-tests"
}, },
"scripts": { "scripts": {
"build": "tsc",
"lint": "standard", "lint": "standard",
"test": "standard && mocha tests/ -t 300000" "test": "standard && mocha --require ts-node/register tests/*.ts -t 300000"
}, },
"repository": { "repository": {
"type": "git", "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