next-test-api-route-handler

⚡ Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment

MIT License

Downloads
150.8K
Stars
255
Committers
10

Bot releases are visible (Hide)

next-test-api-route-handler - v2.0.0

Published by Xunnamius over 3 years ago

2.0.0 (2021-06-27)

💥 BREAKING CHANGES 💥

  • package.json: this version (and the version before this version) no longer works with next@<10

✨ Features

  • Add url and paramsPatcher (ee31fa8)

⚙️ Build system

  • Switch to @xunnamius/conventional-changelog-projector shared config (bc7eb3d)
  • Update dependencies (20ca255)
  • package.json: update dependencies (2f1125c)
  • package.json: update dependencies (7583209)
  • package.json: update next peer dependency to >=10.0.x (bc5e72d)
next-test-api-route-handler - v1.2.24

Published by Xunnamius over 3 years ago

1.2.24 (2021-04-30)

Bug Fixes

  • index.ts: next 10.2.0 compat (af177c5)

Build System

  • .github: split BTD workflow into two separate workflows (security) (99ad127)
  • .github/workflows: disable old pipeline; begin transition to new pipeline (364549e)
  • .github/workflows: overhaul pipeline workflows (4db5d04)
  • contributing.md: split pipeline architecture information off into workflow README.md (6d52302)
  • package.json: ensure hidden dirs' markdown files are seen by remark (linted and formatted) (1f7fad4)
  • package.json: update dependencies (d328a86)
  • readme.md: fix broken links (6e7173f)
  • readme.md: improvements (23cb780)
  • readme.md: include architecture description as workflow README.md (1f25e5f)
next-test-api-route-handler - v1.2.23

Published by xunn-bot over 3 years ago

1.2.23 (2021-03-14)

Build System

next-test-api-route-handler - v1.2.22

Published by xunn-bot over 3 years ago

1.2.22 (2021-03-12)

Build System

  • Update dependencies and fix find-package-json usage (df9ede3)
next-test-api-route-handler - v1.2.21

Published by xunn-bot over 3 years ago

1.2.21 (2021-03-12)

Build System

  • build-test-deploy.yml: actions version updates (29aa25a)
  • build-test-deploy.yml: rollback some pipeline version updates (8065757)
  • package.json: fix typedoc-markdown-plugin patch (dd3e7fa), closes #126
next-test-api-route-handler - v1.2.20

Published by xunn-bot over 3 years ago

1.2.20 (2021-02-22)

Build System

  • package-lock.json: update deps (5a2d98f)
next-test-api-route-handler - v1.2.19

Published by xunn-bot over 3 years ago

1.2.19 (2021-02-22)

Bug Fixes

  • .changelogrc.js: fix dark magic (b4157eb)
  • is-next-compat.ts: never use console.log (81533c8)
  • is-next-compat.ts: use template string instead of literal (3a4f0f1)
  • unit-index.test.ts: 100% test coverage (72189e8)

Build System

  • .eslintrc.js: account for node 12 (cad0fb2)
  • .github: update workflows and templates (54e51eb)
  • integration-external.test.ts: ensure proper cwd is used for executing externals (31c1d5b)
  • is-next-compat.ts: use execa instead of shelljs under the hood (9d12004)
  • package.json: remove shelljs, update other deps (11e192a)
  • package.json: update dependencies (9e1705b)
  • test: update with new lib-pkg tools (004a657)
  • Spellcheck-commit and .changelogrc no longer use shelljs (dd72fd1)
  • setup.ts: fix several lib-pkg tools (44d1967)
  • unit-external.test.ts: update with new lib-pkg tools (6df7e73)
  • Backport new webpack config (b268534)
  • Rename env-expect to expect-env (035e98b)
next-test-api-route-handler - v1.2.18

Published by xunn-bot over 3 years ago

1.2.18 (2021-02-11)

Build System

  • package.json: update to proper forked dependencies (042291d)
next-test-api-route-handler - v1.2.17

Published by xunn-bot over 3 years ago

1.2.17 (2021-02-10)

Build System

  • webpack.config.js: normalize webpack configuration across repos (65f48a3)
  • webpack.config.js: remove ES6 syntax from JS file (5ed6dbd)
next-test-api-route-handler - v1.2.16

Published by xunn-bot over 3 years ago

1.2.16 (2021-02-10)

Build System

  • package.json: update dependencies (aeef7a9)
next-test-api-route-handler - v1.2.15

Published by xunn-bot over 3 years ago

1.2.15 (2021-02-08)

Bug Fixes

  • readme.md: simplify all examples with more modern syntax; remove @ergodark/types (964bc47)
next-test-api-route-handler - v1.2.14

Published by xunn-bot over 3 years ago

1.2.14 (2021-02-08)

Bug Fixes

  • readme.md: add Apollo example and additional guidance (ed357f5)
next-test-api-route-handler - v1.2.13

Published by xunn-bot over 3 years ago

1.2.13 (2021-02-05)

Bug Fixes

  • config: use transform-rename-import when building externals (d224f5e)
  • index.ts: use NextApiHandler type (thanks @janhesters) (473ff50)
  • integration-webpack.test.ts: actually call bundle in test (f7a12de)
  • is-next-compat.ts: better handling of generics (d7bc091)
  • Next no longer misclassified as CJS (9ebac01)

Build System

  • Properly mocked unit tests for externals (b3273df)
  • build-test-deploy.yml: drop support for webpack 4 (e508c06)
  • test: improved testing infrastructure (fffe02e)
  • Only silence sjx if not DEBUG (f01ce40)
  • build-test-deploy.yml: drop support for node 10 (6adde15)
  • build-test-deploy.yml: remove externals exception (5e3893a)
  • cleanup.yml: fix bugs in workflow (cbf22fd)
  • package.json: improved build-dist (a3526f2)
  • package.json: nicer destructured vals in docs (661e62d)
  • package.json: remove extraneous module (1f2ad6a)
  • package.json: update dependencies (c64f761)
  • post-release-check.yml: add five-minute-sleep (4a0552d)
  • post-release-check.yml: more resilient post-release check (856435f)
  • types: more precise unique-filename type (a60793c)
  • Drop support for node 10 (71e9103)
next-test-api-route-handler - v1.2.12

Published by xunn-bot over 3 years ago

1.2.12 (2021-01-23)

Build System

  • Remove erroneous module import (6eb2a34)
next-test-api-route-handler - v1.2.11

Published by xunn-bot over 3 years ago

1.2.11 (2021-01-23)

Build System

  • Backport/normalize across packages (e589c1d)
next-test-api-route-handler - v1.2.10

Published by xunn-bot over 3 years ago

1.2.10 (2021-01-22)

Build System

  • Update debug statement syntax (52a2276)
next-test-api-route-handler - v1.2.9

Published by xunn-bot over 3 years ago

1.2.9 (2021-01-21)

Build System

  • .github/workflows/build-test-deploy.yml: fix peer dependency installation (12e5bbe)
next-test-api-route-handler - v1.2.8

Published by xunn-bot almost 4 years ago

1.2.8 (2021-01-13)

Bug Fixes

  • readme.md: ensure quick start example is functional (87dc31f)
next-test-api-route-handler - v1.2.7

Published by xunn-bot almost 4 years ago

1.2.7 (2021-01-12)

Build System

  • Rebuild lockfile (94cfa38)
  • Update babel-plugin-transform-mjs-imports (62089c7)
next-test-api-route-handler - v1.2.6

Published by xunn-bot almost 4 years ago

1.2.6 (2021-01-06)

Build System

  • package.json: prune old deps (2cf1d29)