1.3.0 • Published 9 months ago

jest-preset-fastly-js-compute v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

jest-preset-fastly-js-compute

Jest presets for JavaScript on Compute@Edge.

  • Provide Compute@Edge global variables/classes which are defined inside fastly runtime
  • Resolve namespaced imports like fastly:xxx

Requirements

  • node.js (prefer version 18.12 or later)

Installation

yarn:

yarn add -D jest-preset-fastly-js-compute

npm:

npm install -D jest-preset-fastly-js-compute

Usage / Example

This package supports TypeScript ESM or CommonJS style.

ESM:

// jest.config.mjs
export default {
  ...
  preset: 'jest-preset-fastly-js-compute/typescript/esm',
}

CommonJS:

// jest.config.js
module.exports = {
  ...
  preset: 'jest-preset-fastly-js-compute/typescript/cjs',
}

Contribution

  • Fork this repository
  • Customize / Fix problem
  • Send PR :-)
  • Or feel free to create issues for us. We'll look into it

Author

Yoshiaki Sugimoto sugimoto@wnotes.net

License

MIT

1.2.0

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.0

10 months ago

1.1.3

9 months ago

1.3.0

9 months ago

1.1.2

9 months ago

0.11.1

10 months ago

0.10.0

1 year ago

0.11.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.9.1

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago