Comparing version 10.1.0 to 11.0.0
{ | ||
"name": "ts-mocha", | ||
"version": "10.1.0", | ||
"version": "11.0.0", | ||
"description": "Mocha thin wrapper that allows running TypeScript tests with TypeScript runtime (ts-node) to get rid of compilation complexity", | ||
@@ -18,28 +18,24 @@ "repository": "https://github.com/piotrwitek/ts-mocha", | ||
"reinstall": "npm run clean && npm install", | ||
"pretest:baseline": "npm install --peer", | ||
"test:baseline": "./bin/ts-mocha -p test/baseline/tsconfig.json test/baseline/**/*.spec.ts test/typecheck/**/*.spec.ts && node test/baseline/programmatic-use-test.js", | ||
"pretest:paths": "npm install --optional", | ||
"test:baseline": "./bin/ts-mocha -p test/baseline/tsconfig.json test/baseline/**/*.spec.ts && node test/baseline/programmatic-use-test.js", | ||
"test:paths": "./bin/ts-mocha --paths -p test/paths/tsconfig.json test/paths/**/*.spec.ts && node test/paths/programmatic-use-test.js", | ||
"test:typecheck": "if ./bin/ts-mocha --type-check -p test/typecheck/tsconfig.json test/typecheck/**/*.spec.ts; then exit 1; fi && node test/typecheck/programmatic-use-test.js", | ||
"test": "npm run test:baseline & npm run test:paths & npm run test:typecheck", | ||
"test": "npm run test:baseline && npm run test:paths && npm run test:typecheck", | ||
"prepublishOnly": "npm run clean && npm install --production && npm install -D mocha && npm test" | ||
}, | ||
"dependencies": { | ||
"ts-node": "7.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/expect": "24.3.0", | ||
"@types/mocha": "8.0.3", | ||
"@types/node": "14.14.2", | ||
"expect": "26.6.1", | ||
"husky": "4.3.0", | ||
"mocha": "^11.0.1", | ||
"@types/expect": "^24.3.2", | ||
"@types/mocha": "^10.0.10", | ||
"@types/node": "^22.13.4", | ||
"expect": "^29.7.0", | ||
"mocha": "^11.1.0", | ||
"ts-node": "^10.9.2", | ||
"tslint": "6.1.3", | ||
"typescript": "3.3.3" | ||
"typescript": "4.9.5" | ||
}, | ||
"peerDependencies": { | ||
"mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X || ^11.X.X" | ||
"mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X || ^11.X.X", | ||
"ts-node": "^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" | ||
}, | ||
"optionalDependencies": { | ||
"tsconfig-paths": "^3.5.0" | ||
"tsconfig-paths": "^4.1.2" | ||
}, | ||
@@ -46,0 +42,0 @@ "files": [ |
@@ -36,2 +36,5 @@ # TS-Mocha | ||
# remember to install required peerDependencies | ||
npm i -D mocha ts-node | ||
# install recent Mocha and Expect @types packages for best DX | ||
@@ -95,3 +98,3 @@ npm i -D @types/mocha @types/expect | ||
// set env variable to the `tsconfig.json` path before loading mocha (default: './tsconfig.json') | ||
process.env.TS_NODE_PROJECT = './src/tsconfig.json' | ||
process.env.TS_NODE_PROJECT = "./src/tsconfig.json"; | ||
@@ -102,3 +105,3 @@ // Optional: set env variable to enable `tsconfig-paths` integration | ||
// register mocha wrapper | ||
require('ts-mocha'); | ||
require("ts-mocha"); | ||
``` | ||
@@ -109,5 +112,5 @@ | ||
```javascript | ||
process.env.TS_NODE_PROJECT = './src/tsconfig.json'; | ||
require('ts-mocha'); | ||
const Mocha = require('mocha'); | ||
process.env.TS_NODE_PROJECT = "./src/tsconfig.json"; | ||
require("ts-mocha"); | ||
const Mocha = require("mocha"); | ||
@@ -117,3 +120,3 @@ const mocha = new Mocha(); | ||
mocha.run((failures) => { | ||
process.on('exit', () => { | ||
process.on("exit", () => { | ||
process.exit(failures); // exit with non-zero status if there were failures | ||
@@ -120,0 +123,0 @@ }); |
121
10021
5
+ Added@cspotcode/source-map-support@0.8.1(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.9(transitive)
+ Added@tsconfig/node10@1.0.11(transitive)
+ Added@tsconfig/node12@1.0.11(transitive)
+ Added@tsconfig/node14@1.0.3(transitive)
+ Added@tsconfig/node16@1.0.4(transitive)
+ Added@types/node@22.13.5(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)
+ Addedarg@4.1.3(transitive)
+ Addedcreate-require@1.1.1(transitive)
+ Addeddiff@4.0.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedts-node@10.9.2(transitive)
+ Addedtsconfig-paths@4.2.0(transitive)
+ Addedtypescript@5.7.3(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedv8-compile-cache-lib@3.0.1(transitive)
+ Addedyn@3.1.1(transitive)
- Removedts-node@7.0.1
- Removed@types/json5@0.0.29(transitive)
- Removedarrify@1.0.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removeddiff@3.5.0(transitive)
- Removedjson5@1.0.2(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.21(transitive)
- Removedts-node@7.0.1(transitive)
- Removedtsconfig-paths@3.15.0(transitive)
- Removedyn@2.0.0(transitive)