Socket
Book a DemoInstallSign in
Socket

jest-preset-fastly-js-compute

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-preset-fastly-js-compute

Jest presets for [JavaScript on Compute@Edge](https://developer.fastly.com/learning/compute/javascript/).

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
676
40.25%
Maintainers
0
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 12 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.