@mochify/mochify
Version:
Run mocha tests in headless browsers
80 lines (79 loc) • 2.51 kB
JSON
{
"name": "@mochify/mochify",
"version": "1.0.1",
"description": "Run mocha tests in headless browsers",
"homepage": "https://github.com/mochify-js/mochify",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"test": "mocha '**/*.test.js'",
"test:all": "npm run test && npm run test:integration",
"test:integration": "mocha --timeout 10000 -R spec '**/*.integration.js'",
"types:check": "npm run clean && npm run build && tsc -p test/tsconfig.types-check.json",
"coverage": "c8 --reporter=text --reporter=lcov npm run test:all",
"coverage:check": "c8 --reporter=text --reporter=lcov --check-coverage --branches 92 --functions 85.5 --lines 92 npm run test:all",
"watch": "npm test -- --watch",
"build": "tsc --project tsconfig.pack.json",
"clean": "rimraf --glob '!(node_modules)/**/*.d.ts' '*.d.ts' coverage",
"prepack": "npm run clean && npm run build",
"postpack": "npm run clean",
"preversion": "npm run lint && npm run prettier:check && npm run types:check && tsc && npm run coverage:check",
"version": "changes --commits --footer",
"postversion": "git push --follow-tags && npm publish",
"prettier:check": "prettier --check '**/*.{js,json,md}'",
"prettier:write": "prettier --write '**/*.{js,json,md}'",
"prepare": "husky"
},
"keywords": [
"mocha",
"headless",
"browser",
"testing"
],
"author": "Maximilian Antoni <mail@maxantoni.de> (http://maxantoni.de)",
"license": "MIT",
"engines": {
"node": ">=20"
},
"mocha": {
"reporter": "dot",
"require": "test/hooks.js",
"ignore": "node_modules/**"
},
"dependencies": {
"convert-source-map": "^2.0.0",
"deepmerge": "^4.3.1",
"execa": "^9.6.0",
"glob": "^11.0.3",
"lilconfig": "^3.1.3",
"mime": "^4.0.7",
"mocha": "^11.7.1",
"source-map": "^0.7.6",
"stacktrace-parser": "^0.1.11",
"string-argv": "^0.3.2"
},
"devDependencies": {
"@sinonjs/referee-sinon": "^12.0.0",
"@studio/changes": "^3.0.0",
"@studio/eslint-config": "^8.0.1",
"@studio/related-tests": "^0.2.0",
"@studio/tsconfig": "^1.3.0",
"@types/node": "^24.3.0",
"c8": "^10.1.3",
"eslint": "^9.33.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^16.1.5",
"prettier": "^3.6.2",
"proxyquire": "^2.1.3",
"rimraf": "^6.0.1",
"typescript": "^5.9.2"
},
"files": [
"**/*.js",
"**/*.d.ts",
"!**/*.test.js",
"!test/**",
"!.*"
]
}