UNPKG

typeorm-test-transactions

Version:

A transactional wrapper for tests that use TypeORM that automatically rolls back the transaction at the end of the test.

58 lines (57 loc) 1.74 kB
{ "name": "typeorm-test-transactions", "version": "3.6.1", "description": "A transactional wrapper for tests that use TypeORM that automatically rolls back the transaction at the end of the test.", "main": "dist/index", "types": "dist/index", "scripts": { "pretest": "sleep 10; DB_INIT=1 ts-node tests/index.ts", "test": "jest --forceExit", "build": "rimraf dist && tsc", "prepublish": "npm run build", "release": "entro-version --during-release-post-hook=\"npm publish\"" }, "repository": { "type": "git", "url": "git+https://github.com/entrostat/typeorm-test-transactions.git" }, "keywords": [ "typeorm", "transaction", "test", "rollback", "wrapper", "closure", "typescript" ], "author": "Kerren Ortlepp <kerren@entrostat.com>", "license": "MIT", "bugs": { "url": "https://github.com/entrostat/typeorm-test-transactions/issues" }, "homepage": "https://github.com/entrostat/typeorm-test-transactions#readme", "devDependencies": { "@types/jest": "^27.0.2", "@types/node": "^16.10.1", "jest": "^27.2.2", "entro-version": "^1.5.0", "mysql": "^2.18.1", "pg": "^8.7.1", "prettier": "^2.4.1", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", "standard-version": "^9.3.1", "ts-jest": "^27.0.5", "ts-node": "^10.2.1", "typeorm": "^0.2.37", "typescript": "^4.4.3" }, "dependencies": { "typeorm-transactional-cls-hooked": "^0.1.21" }, "standard-version": { "skip": { "tag": false } } }