Re-add Jest, revert ava (#1779)

* Re-add Jest (env node)

* Revert "Switch to ava as a test runner (#1778)"

This reverts commit 5aa2b3c096.
This commit is contained in:
Jaco
2022-07-08 13:17:48 +02:00
committed by GitHub
parent ce0c54e9ba
commit eaf3121696
11 changed files with 257 additions and 1067 deletions
+4 -6
View File
@@ -32,11 +32,10 @@
"clean": "polkadot-dev-clean-build",
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
"lint": "polkadot-dev-run-lint",
"phishing:addrcheck": "ava packages/phishing/src/addrcheck.spec.ts",
"phishing:crosscheck": "ava packages/phishing/src/crosscheck.spec.ts",
"phishing:addrcheck": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --runInBand --detectOpenHandles packages/phishing/src/addrcheck",
"phishing:crosscheck": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --runInBand --detectOpenHandles packages/phishing/src/crosscheck",
"postinstall": "polkadot-dev-yarn-only",
"test": "ava --match '!CI*'",
"test:one": "yarn test"
"test": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --runInBand --detectOpenHandles --testPathIgnorePatterns addrcheck --testPathIgnorePatterns crosscheck"
},
"dependencies": {
"@pinata/sdk": "^1.1.26",
@@ -45,8 +44,7 @@
"devDependencies": {
"@babel/core": "^7.18.6",
"@polkadot/dev": "^0.67.63",
"ava": "^4.3.0",
"ts-node": "^10.8.2"
"@types/jest": "^28.1.4"
},
"resolutions": {
"typescript": "^4.7.4"