UNPKG

jest-mock-console

Version:
85 lines (84 loc) 3.04 kB
{ "name": "jest-mock-console", "version": "2.0.0", "description": "Jest utility to mock the console", "main": "index.js", "types": "index.d.ts", "scripts": { "build": "babel src -d dist", "jest26": "node ./node_modules/jest26/bin/jest --config=jest26.config.js", "jest27": "node ./node_modules/jest27/bin/jest --config=jest27.config.js", "jest": "node ./node_modules/jest/bin/jest --config=jest28.config.js", "jest:no-globals": "node ./node_modules/jest/bin/jest --config=jest.noGlobals.config.js --testPathPattern=noGlobals", "test:no-mock-console": "node ./node_modules/jest/bin/jest --testPathPattern=noMockConsole", "test": "npm run jest --coverage --collectCoverageFrom=src/index.js", "test:watch": "npm run jest --watch", "test:setupfile-with-circus": "npm run jest27 -- --setupTestFrameworkScriptFile=./src/setupTestFramework.js --coverage --collectCoverageFrom=src/**.js", "test:setupfile-with-jasmine": "npm run jest27 --setupTestFrameworkScriptFile=./src/setupTestFramework.js --coverage --collectCoverageFrom=src/**.js --testRunner=jest-jasmine2", "test26": "npm run jest26 -- --coverage --collectCoverageFrom=src/index.js", "test26:with-setup": "npm run jest26 -- --setupTestFrameworkScriptFile=./src/setupTestFramework.js --coverage --collectCoverageFrom=src/**.js", "test27": "npm run jest27 -- --coverage --collectCoverageFrom=src/index.js", "test27:with-setup": "npm run jest27 -- --setupTestFrameworkScriptFile=./src/setupTestFramework.js --coverage --collectCoverageFrom=src/**.js" }, "files": [ "dist", "index.d.ts", "index.js" ], "author": "Brian H Pedersen", "contributors": [ "Quentin Golsteyn", "NoriSte" ], "license": "MIT", "peerDependencies": { "jest": ">= 22.4.2" }, "devDependencies": { "@babel/cli": "^7.13.16", "@babel/core": "^7.13.16", "@babel/preset-env": "^7.13.15", "@types/jest": "^26.0.22", "babel-jest": "^26.6.3", "codecov": "^3.0.0", "jest": "^28.0.3", "jest26": "npm:jest@^26.6.3", "jest27": "npm:jest@^27.2.4", "ts-jest": "^28.0.3", "ts-jest26": "npm:ts-jest@^26.5.6", "ts-jest27": "npm:ts-jest@^27.1.5", "typescript": "^4.2.4" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "repository": { "type": "git", "url": "https://github.com/bpedersen/jest-mock-console.git" }, "bugs": { "url": "https://github.com/bpedersen/jest-mock-console/issues" }, "homepage": "https://github.com/bpedersen/jest-mock-console#readme", "jest": { "coverageDirectory": "./coverage/", "collectCoverage": true, "moduleNameMapper": { "jest-mock-console": "<rootDir>/src" }, "transform": { "^.+\\.jsx?$": "babel-jest", "^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "testURL": "http://localhost", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] } }