make test runner work again

This commit is contained in:
Florian Dold 2020-04-06 13:33:15 +05:30
parent dee9ccf7b1
commit b4a54522ec
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 20 additions and 1 deletions

View File

@ -17,7 +17,8 @@
},
"scripts": {
"build": "make tsc",
"pretty": "prettier --config .prettierrc --write src"
"pretty": "prettier --config .prettierrc --write src",
"test": "ava"
},
"files": [
"AUTHORS",
@ -69,10 +70,21 @@
"webpack-merge": "^4.2.2"
},
"dependencies": {
"@ava/typescript": "^1.1.1",
"axios": "^0.19.2",
"big-integer": "^1.6.48",
"idb-bridge": "^0.0.15",
"qrcode-generator": "^1.4.3",
"source-map-support": "^0.5.12"
},
"ava": {
"files": [
"src/**/*-test.{js,ts}"
],
"typescript": {
"rewritePaths": {
"src/": "dist/node/"
}
}
}
}

View File

@ -2,6 +2,13 @@
# yarn lockfile v1
"@ava/typescript@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@ava/typescript/-/typescript-1.1.1.tgz#3dcaba3aced8026fdb584d927d809752854dc6e6"
integrity sha512-KbLUAe2cWXK63WLK6LnOJonjwEDU/8MNXCOA1ooX/YFZgKRmeAD1kZu+2K0ks5fnOCEcckNQAooyBNGdZUmMQA==
dependencies:
escape-string-regexp "^2.0.0"
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5":
version "7.5.5"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d"