remix-ide build & serve successful

pull/5370/head
aniket-engg 4 years ago
parent 7fc451fa0f
commit d17e4f08ca
  1. 0
      libs/remix-tests/sol/tests.sol.ts
  2. 0
      libs/remix-tests/sol/tests_accounts.sol.ts
  3. 6
      libs/remix-tests/src/compiler.ts
  4. 2
      libs/remix-tests/src/index.ts
  5. 2
      libs/remix-tests/tsconfig.lib.json
  6. 2
      tsconfig.json

@ -10,7 +10,7 @@ function regexIndexOf (inputString: string, regex: RegExp, startpos = 0) {
}
function writeTestAccountsContract (accounts: string[]) {
const testAccountContract = require('../sol/tests_accounts.sol.js')
const testAccountContract = require('../sol/tests_accounts.sol')
let body = `address[${accounts.length}] memory accounts;`
if (!accounts.length) body += ';'
else {
@ -86,8 +86,8 @@ export function compileFileOrFiles(filename: string, isDirectory: boolean, opts:
let compiler: any
const accounts: string[] = opts.accounts || []
const sources: SrcIfc = {
'tests.sol': { content: require('../sol/tests.sol.js') },
'remix_tests.sol': { content: require('../sol/tests.sol.js') },
'tests.sol': { content: require('../sol/tests.sol') },
'remix_tests.sol': { content: require('../sol/tests.sol') },
'remix_accounts.sol': { content: writeTestAccountsContract(accounts) }
}
const filepath: string = (isDirectory ? filename : path.dirname(filename))

@ -2,4 +2,4 @@ export { runTestFiles } from './runTestFiles'
export { runTestSources } from './runTestSources'
export { runTest } from './testRunner'
export * from './types'
export const assertLibCode = require('../sol/tests.sol.js')
export const assertLibCode = require('../sol/tests.sol')

@ -4,7 +4,7 @@
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"rootDir": "./src",
"rootDir": "./",
"types": ["node"]
},
"exclude": [

@ -22,7 +22,7 @@
"@remix-project/remix-lib": ["dist/libs/remix-lib/index.js"],
"@remix-project/remix-simulator": ["dist/libs/remix-simulator/index.js"],
"@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"],
"@remix-project/remix-tests": ["dist/libs/remix-tests/index.js"],
"@remix-project/remix-tests": ["dist/libs/remix-tests/src/index.js"],
"@remix-project/remix-url-resolver": ["dist/libs/remix-url-resolver/index.js"]
}
},

Loading…
Cancel
Save