Skip to content

Instantly share code, notes, and snippets.

View Gianfranco97's full-sized avatar

Gianfranco Gesu Manganiello Tiso Gianfranco97

View GitHub Profile
import { SOME_VALUE } from '../constants';
jest.mock('../constants', () => ({ SOME_VALUE: 'abc123test' }));
@schmich
schmich / npm-prerelease.md
Last active June 26, 2024 13:20
Publish a prerelease package to NPM
  • Update package.json, set version to a prerelease version, e.g. 2.0.0-rc1, 3.1.5-rc4, ...
  • Run npm pack to create package
  • Run npm publish <package>.tgz --tag next to publish the package under the next tag
  • Run npm install --save package@next to install prerelease package