UNPKG

@testduet/given-when-then

Version:

Write behavior-driven development (BDD) tests using "given-when-then" pattern and execute them in any traditional "describe-before-it-after" test framework.

74 lines (73 loc) 3.39 kB
{ "name": "@testduet/given-when-then", "version": "0.1.0-main.5e524dc", "description": "Write behavior-driven development (BDD) tests using \"given-when-then\" pattern and execute them in any traditional \"describe-before-it-after\" test framework.", "files": [ "./dist/" ], "exports": { ".": { "import": { "types": "./dist/given-when-then.d.mts", "default": "./dist/given-when-then.mjs" }, "require": { "types": "./dist/given-when-then.d.ts", "default": "./dist/given-when-then.js" } } }, "main": "./dist/given-when-then.js", "typings": "./dist/given-when-then.d.ts", "scripts": { "build": "tsup", "bump": "npm run bump:prod && npm run bump:dev", "bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", "bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true", "precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test", "precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/", "precommit:publint": "publint", "precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json", "precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json", "prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .", "switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json", "test": "jest" }, "repository": { "type": "git", "url": "git+https://github.com/testduet/given-when-then.git" }, "keywords": [ "bdd", "behavior driven development", "given-when-then", "tdd", "test driven development" ], "author": "William Wong (https://github.com/compulim)", "license": "MIT", "bugs": { "url": "https://github.com/testduet/given-when-then/issues" }, "homepage": "https://github.com/testduet/given-when-then#readme", "devDependencies": { "@babel/preset-env": "^7.26.9", "@babel/preset-typescript": "^7.27.0", "@rollup/rollup-linux-x64-gnu": "^4.43.0", "@testing-library/react": "^16.3.0", "@tsconfig/recommended": "^1.0.8", "@tsconfig/strictest": "^2.0.5", "@types/jest": "^29.5.14", "@types/node": "^22.14.0", "esbuild": "^0.25.2", "jest": "^29.7.0", "msw": "^2.7.3", "prettier": "^3.5.3", "publint": "^0.3.10", "tsup": "^8.4.0", "typescript": "^5.8.2" }, "dependencies": { "@testduet/given-when-then": "^0.1.0-main.5e524dc" } }