UNPKG

next-page-tester

Version:
154 lines (153 loc) 4.38 kB
{ "name": "next-page-tester", "description": "Enable DOM integration testing on Next.js pages", "version": "0.33.0", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "!__tests__" ], "scripts": { "clean": "rm -rf dist", "compile": "npm run clean && tsc -p tsconfig.build.json", "test": "jest ./src", "test:skip-use-document": "jest ./src", "test:source": "npm run test:format && npm run test:ts && npm t -- --coverage", "test:dist": "jest ./src --config ./jest/dist.config.js", "test:published": "jest ./src --config ./jest/published.config.js", "test:ts": "tsc --noEmit", "test:format": "npm run prettier:check && npm run eslint:check", "prepare": "npm run test:source && npm run compile && npm run test:dist", "preversion": "npm run prepare", "version": "git add package.json", "postversion": "git push && git push --tags", "prettier:fix": "prettier --write .", "prettier:check": "prettier --check .", "eslint:check": "eslint --max-warnings 0 --ext .ts,.tsx,.js \"src\"" }, "keywords": [ "next", "nextjs", "test", "testing", "dom", "ui", "unit", "integration", "routing" ], "repository": { "type": "git", "url": "git+https://github.com/toomuchdesign/next-pages-tester.git" }, "author": "Andrea Carraro <me@andreacarraro.it>", "license": "ISC", "devDependencies": { "@apollo/client": "^3.3.20", "@babel/core": "^7.14.6", "@emotion/css": "^11.1.3", "@emotion/react": "^11.1.5", "@emotion/server": "^11.0.0", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^12.1.1", "@testing-library/user-event": "^13.2.1", "@types/cookie": "^0.4.1", "@types/find-root": "^1.1.2", "@types/jest": "^26.0.23", "@types/lodash": "^4.14.170", "@types/node": "^14.17.34", "@types/normalize-path": "^3.0.0", "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@types/styletron-engine-atomic": "^1.1.1", "@types/styletron-react": "^5.0.3", "@typescript-eslint/eslint-plugin": "^4.31.1", "@typescript-eslint/parser": "^4.31.1", "aws-amplify": "^4.2.5", "babel-jest": "^27.0.2", "cross-fetch": "^3.1.4", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-jest": "^24.4.2", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.25.2", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-testing-library": "^4.12.2", "graphql": "^15.8.0", "husky": "^4.3.8", "identity-obj-proxy": "^3.0.0", "jest": "^27.0.4", "lint-staged": "^10.5.4", "lodash": "^4.17.21", "next": "^12.1.1", "next-page-tester-on-npm": "npm:next-page-tester@^0.25.0", "prettier": "^2.2.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-hook-form": "^6.15.8", "styletron-engine-atomic": "^1.4.8", "styletron-react": "^6.0.2", "ts-jest": "^27.0.3", "typescript": "^4.4.4" }, "dependencies": { "@types/express": "^4.17.13", "cookie": "^0.4.1", "dotenv": "^8.2.0", "dotenv-expand": "^5.1.0", "find-root": "^1.1.0", "node-mocks-http": "^1.11.0", "normalize-path": "^3.0.0", "stealthy-require": "^1.1.1", "tiny-glob": "^0.2.9" }, "peerDependencies": { "next": "^12.1.1", "react": "^16.6.0 || ^17", "react-dom": "^16.6.0 || ^17" }, "jest": { "preset": "ts-jest/presets/js-with-ts", "testEnvironment": "jsdom", "testMatch": [ "**/?(*.)+(test).[jt]s?(x)" ], "testPathIgnorePatterns": [ "__fixtures__", "useDocument.test" ], "coveragePathIgnorePatterns": [ "__tests__", "src/testHelpers.ts" ], "coverageReporters": [ "text", "lcov" ], "moduleNameMapper": { "\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/jest/fileMock.js", "\\.(css|less|scss)$": "identity-obj-proxy" }, "setupFilesAfterEnv": [ "./src/__tests__/setup.ts" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*.{js,json,ts,tsx}": [ "prettier", "npm run test:source" ], "**/*.{md}": [ "prettier" ] }, "engines": { "node": ">=v12.22.8" } }