Skip to content

Commit

Permalink
misc. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Aug 9, 2021
1 parent 666d223 commit 23a07b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "../../config/tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.json", "tests/*.ts", "tests/*.json"],
"references": [{ "path": "../util/tsconfig.prod.json" }]
Expand Down
7 changes: 6 additions & 1 deletion packages/vm/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ module.exports = function (config) {
frameworks: ['karma-typescript', 'tap'],

// list of files / patterns to load in the browser
files: ['./tests/**/*.ts', './src/**/*.ts'],
files: [
'./src/**/*.ts',
'./tests/api/**/*.ts',
'./tests/util.ts',
'./tests/testLoader.ts',
],

// list of files / patterns to exclude
exclude: [],
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/tests/tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async function runTests() {

const dirs = config.getTestDirs(FORK_CONFIG_VM, name)
for (const dir of dirs) {
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
testLoader
.getTestsFromArgs(
dir,
Expand Down
4 changes: 2 additions & 2 deletions packages/vm/tests/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function makeTx(txData: any, opts?: TxOptions) {
}

export async function verifyPostConditions(state: any, testData: any, t: tape.Test) {
return new Promise((resolve) => {
return new Promise<void>((resolve) => {
const hashedAccounts: any = {}
const keyMap: any = {}

Expand Down Expand Up @@ -178,7 +178,7 @@ export function verifyAccountPostConditions(
acctData: any,
t: tape.Test
) {
return new Promise((resolve) => {
return new Promise<void>((resolve) => {
t.comment('Account: ' + address)
t.ok(format(account.balance, true).equals(format(acctData.balance, true)), 'correct balance')
t.ok(format(account.nonce, true).equals(format(acctData.nonce, true)), 'correct nonce')
Expand Down

0 comments on commit 23a07b6

Please sign in to comment.