Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor tests to use jest and move into respective packages
- Loading branch information
Showing
179 changed files
with
45,436 additions
and
8,051 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,181 +1,199 @@ | ||
{ | ||
"name": "blockstack", | ||
"version": "21.1.1", | ||
"description": "The Blockstack Javascript library for authentication, identity, and storage.", | ||
"main": "lib/index", | ||
"unpkg": "dist/blockstack.js", | ||
"jsdelivr": "dist/blockstack.js", | ||
"browser": { | ||
"crypto": false, | ||
"url": false | ||
}, | ||
"prettier": "@blockstack/prettier-config", | ||
"scripts": { | ||
"build": "run-p build:node build:webpack build:docs", | ||
"build:webpack": "rimraf dist && cross-env NODE_ENV=production webpack --mode=production", | ||
"build:webpack:analyze": "rimraf dist && cross-env NODE_ENV=production ANALYZE=true webpack --mode=production", | ||
"build:webpack:watch": "rimraf dist && cross-env NODE_ENV=development webpack --mode=development --watch --progress --info-verbosity verbose", | ||
"build:node": "rimraf lib && tsc -b tsconfig.build.json", | ||
"build:node:watch": "rimraf lib && tsc -b tsconfig.build.json --watch", | ||
"prepare": "run-p build:node build:webpack", | ||
"test": "run-p lint test:build test:unitTests", | ||
"test:unitTests": "cross-env NODE_ENV=test nyc node ./tests/unitTests/src/index.ts", | ||
"test:build": "cross-env NODE_ENV=test tsc -p ./tests/unitTests/src/tsconfig.json", | ||
"integration-test-ops": "cross-env NODE_ENV=test nyc node ./tests/operationsTests/src/index.ts", | ||
"dev-auth": "npm run build:webpack && ts-node ./tests/browserTests/auth-server.ts", | ||
"dev-proofs": "npm run build:webpack && ts-node ./tests/browserTests/proofs-server.ts", | ||
"prepublishOnly": "npm run test && npm run build", | ||
"lint": "eslint --ext=.ts -f=codeframe ./src", | ||
"lint:fix": "eslint --ext=.ts -f=codeframe ./src --fix", | ||
"build:docs": "rimraf docs && cross-env typedoc --name \"blockstack.js $npm_package_version Library Reference\" --tsconfig tsconfig.typedoc.json --out docs --json docs/docs.json src", | ||
"lint:formatting": "prettier --check 'src/**/*.ts'", | ||
"tsc": "tsc", | ||
"codecovUpload": "codecov" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/blockstack/blockstack.js.git" | ||
}, | ||
"author": { | ||
"name": "Blockstack PBC", | ||
"email": "admin@blockstack.com", | ||
"url": "https://blockstack.com" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/blockstack/blockstack.js/issues" | ||
}, | ||
"keywords": [ | ||
"blockchain", | ||
"id", | ||
"auth", | ||
"authentication", | ||
"bitcoin", | ||
"blockchain auth", | ||
"blockchain authentication", | ||
"blockchainid", | ||
"blockchain id", | ||
"bitcoin auth", | ||
"bitcoin authentication", | ||
"bitcoin login", | ||
"blockchain login", | ||
"authorization", | ||
"login", | ||
"signin", | ||
"sso", | ||
"crypto", | ||
"cryptography", | ||
"token", | ||
"blockstack", | ||
"blockstack auth", | ||
"profile", | ||
"identity", | ||
"ethereum" | ||
], | ||
"homepage": "https://blockstack.org", | ||
"contributors": [ | ||
{ | ||
"name": "Ryan Shea" | ||
}, | ||
{ | ||
"name": "Larry Salibra" | ||
}, | ||
{ | ||
"name": "Jude Nelson" | ||
}, | ||
{ | ||
"name": "Aaron Blankstein" | ||
} | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.0", | ||
"@babel/core": "^7.7.2", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-typescript": "^7.7.0", | ||
"@babel/register": "^7.7.0", | ||
"@blockstack/prettier-config": "0.0.3", | ||
"@peculiar/webcrypto": "^1.0.21", | ||
"@types/bn.js": "^4.11.6", | ||
"@types/cheerio": "^0.22.10", | ||
"@types/elliptic": "^6.4.10", | ||
"@types/fetch-mock": "^5.8.0", | ||
"@types/form-data": "^2.2.1", | ||
"@types/jsdom": "^12.2.4", | ||
"@types/node": "^10.17.28", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/randombytes": "^2.0.0", | ||
"@types/sha.js": "^2.4.0", | ||
"@types/sinon": "^7.5.0", | ||
"@types/tape": "^4.2.33", | ||
"@types/triplesec": "^3.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.7.0", | ||
"@typescript-eslint/parser": "^2.7.0", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-istanbul": "^5.2.0", | ||
"cheerio": "^0.22.0", | ||
"codecov": "^3.6.1", | ||
"cross-env": "^6.0.3", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.5.0", | ||
"eslint-import-resolver-typescript": "^2.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"express": "^4.17.1", | ||
"fetch-mock": "^8.1.0", | ||
"jsdom": "^15.2.1", | ||
"lerna": "^3.22.1", | ||
"mock-local-storage": "^1.1.8", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^14.1.1", | ||
"opn": "^4.0.2", | ||
"prettier": "^1.18.2", | ||
"proxyquire": "^2.1.3", | ||
"rimraf": "^3.0.0", | ||
"semver": "^6.3.0", | ||
"shx": "^0.3.2", | ||
"sinon": "^7.5.0", | ||
"source-map-loader": "^0.2.4", | ||
"source-map-support": "^0.5.16", | ||
"tape": "^4.11.0", | ||
"tape-promise": "^4.0.0", | ||
"triplesec": "^4.0.3", | ||
"ts-loader": "^6.2.1", | ||
"ts-node": "^8.10.2", | ||
"typedoc": "^0.15.1", | ||
"typescript": "^3.7.2", | ||
"webpack": "^4.41.2", | ||
"webpack-assets-manifest": "^3.1.1", | ||
"webpack-bundle-analyzer": "^3.6.0", | ||
"webpack-cli": "^3.3.10" | ||
}, | ||
"dependencies": {}, | ||
"engines": { | ||
"node": ">=8", | ||
"npm": ">=6" | ||
}, | ||
"nyc": { | ||
"all": true, | ||
"cache": false, | ||
"extension": [ | ||
".ts" | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"**/*.d.ts" | ||
], | ||
"require": [ | ||
"ts-node/register/transpile-only", | ||
"source-map-support/register" | ||
], | ||
"reporter": [ | ||
"text", | ||
"html", | ||
"lcov" | ||
] | ||
} | ||
"name": "blockstack", | ||
"version": "21.1.1", | ||
"description": "The Blockstack Javascript library for authentication, identity, and storage.", | ||
"main": "lib/index", | ||
"unpkg": "dist/blockstack.js", | ||
"jsdelivr": "dist/blockstack.js", | ||
"browser": { | ||
"crypto": false, | ||
"url": false | ||
}, | ||
"prettier": "@blockstack/prettier-config", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/blockstack/blockstack.js.git" | ||
}, | ||
"author": { | ||
"name": "Blockstack PBC", | ||
"email": "admin@blockstack.com", | ||
"url": "https://blockstack.com" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/blockstack/blockstack.js/issues" | ||
}, | ||
"keywords": [ | ||
"blockchain", | ||
"id", | ||
"auth", | ||
"authentication", | ||
"bitcoin", | ||
"blockchain auth", | ||
"blockchain authentication", | ||
"blockchainid", | ||
"blockchain id", | ||
"bitcoin auth", | ||
"bitcoin authentication", | ||
"bitcoin login", | ||
"blockchain login", | ||
"authorization", | ||
"login", | ||
"signin", | ||
"sso", | ||
"crypto", | ||
"cryptography", | ||
"token", | ||
"blockstack", | ||
"blockstack auth", | ||
"profile", | ||
"identity", | ||
"ethereum" | ||
], | ||
"homepage": "https://blockstack.org", | ||
"contributors": [ | ||
{ | ||
"name": "Ryan Shea" | ||
}, | ||
{ | ||
"name": "Larry Salibra" | ||
}, | ||
{ | ||
"name": "Jude Nelson" | ||
}, | ||
{ | ||
"name": "Aaron Blankstein" | ||
} | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.0", | ||
"@babel/core": "^7.7.2", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-typescript": "^7.7.0", | ||
"@babel/register": "^7.7.0", | ||
"@blockstack/prettier-config": "0.0.3", | ||
"@peculiar/webcrypto": "^1.0.21", | ||
"@types/bn.js": "^4.11.6", | ||
"@types/cheerio": "^0.22.10", | ||
"@types/elliptic": "^6.4.10", | ||
"@types/fetch-mock": "^5.8.0", | ||
"@types/form-data": "^2.2.1", | ||
"@types/jsdom": "^12.2.4", | ||
"@types/node": "^10.17.28", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/randombytes": "^2.0.0", | ||
"@types/sha.js": "^2.4.0", | ||
"@types/sinon": "^7.5.0", | ||
"@types/tape": "^4.2.33", | ||
"@types/triplesec": "^3.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.7.0", | ||
"@typescript-eslint/parser": "^2.7.0", | ||
"@types/cors": "^2.8.5", | ||
"@types/express": "^4.16.1", | ||
"@types/express-winston": "^3.0.1", | ||
"@types/inquirer": "^6.5.0", | ||
"@types/jest": "^24.9.0", | ||
"@types/node-fetch": "^2.5.0", | ||
"@types/ripemd160": "^2.0.0", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-istanbul": "^5.2.0", | ||
"cheerio": "^0.22.0", | ||
"codecov": "^3.6.1", | ||
"cross-env": "^6.0.3", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.5.0", | ||
"eslint-import-resolver-typescript": "^2.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"express": "^4.17.1", | ||
"jest": "^24.9.0", | ||
"jest-fetch-mock": "^3.0.3", | ||
"jsdom": "^15.2.1", | ||
"lerna": "^3.22.1", | ||
"mock-local-storage": "^1.1.8", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^14.1.1", | ||
"opn": "^4.0.2", | ||
"prettier": "^1.18.2", | ||
"proxyquire": "^2.1.3", | ||
"rimraf": "^3.0.0", | ||
"semver": "^6.3.0", | ||
"shx": "^0.3.2", | ||
"sinon": "^7.5.0", | ||
"source-map-loader": "^0.2.4", | ||
"source-map-support": "^0.5.16", | ||
"tape": "^4.11.0", | ||
"tape-promise": "^4.0.0", | ||
"triplesec": "^4.0.3", | ||
"ts-loader": "^6.2.1", | ||
"ts-node": "^8.10.2", | ||
"typedoc": "^0.15.1", | ||
"typescript": "^3.7.2", | ||
"webpack": "^4.41.2", | ||
"webpack-assets-manifest": "^3.1.1", | ||
"webpack-bundle-analyzer": "^3.6.0", | ||
"webpack-cli": "^3.3.10" | ||
}, | ||
"dependencies": { | ||
"@babel/compat-data": "^7.10.1", | ||
"@babel/plugin-proposal-optional-chaining": "^7.9.0", | ||
"@blockstack/rpc-client": "^0.3.0-alpha.11", | ||
"@blockstack/stacks-transactions": "0.5.1", | ||
"ajv": "^4.11.5", | ||
"bip32": "^2.0.4", | ||
"bip39": "^3.0.2", | ||
"bitcoinjs-lib": "^5.1.10", | ||
"blockstack": "21.0.0", | ||
"bn.js": "^5.1.1", | ||
"c32check": "^1.0.1", | ||
"cors": "^2.8.4", | ||
"cross-fetch": "^3.0.5", | ||
"depcheck": "^0.8.3", | ||
"elliptic": "^6.5.3", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"express-winston": "^3.1.0", | ||
"inquirer": "^7.1.0", | ||
"jsontokens": "^3.0.0", | ||
"minimist": ">=1.2.3", | ||
"node-fetch": "^2.6.0", | ||
"query-string": "^6.13.1", | ||
"randombytes": "^2.1.0", | ||
"ripemd160": "^2.0.1", | ||
"ripemd160-min": "^0.0.6", | ||
"schema-inspector": "^1.7.0", | ||
"sha.js": "^2.4.11", | ||
"ts-jest": "^24.3.0", | ||
"tsdx": "^0.11.0", | ||
"winston": "^3.2.1", | ||
"zone-file": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8", | ||
"npm": ">=6" | ||
}, | ||
"nyc": { | ||
"all": true, | ||
"cache": false, | ||
"extension": [ | ||
".ts" | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"**/*.d.ts" | ||
], | ||
"require": [ | ||
"ts-node/register/transpile-only", | ||
"source-map-support/register" | ||
], | ||
"reporter": [ | ||
"text", | ||
"html", | ||
"lcov" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.