New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-mocha

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-mocha - npm Package Compare versions

Comparing version 10.1.0 to 11.0.0

30

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc