Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Minimal guard that enforces Git Stunts tests/benchmarks Docker-only policy. Complete with banner, env detection, and test-friendly hooks.

License

Notifications You must be signed in to change notification settings

git-stunts/docker-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

@git-stunts/docker-guard

npm version CI license

Tiny guard that ensures tests and benchmarks only execute inside Docker. Each git-stunts package can import the guard, then call ensureDocker() before any runtime work begins.

Usage

import { ensureDocker } from '@git-stunts/docker-guard';
ensureDocker();

You can also pass overrides for testing:

import { ensureDocker } from '@git-stunts/docker-guard';
ensureDocker({
 env: { GIT_STUNTS_DOCKER: '1' },
 logger: () => {},
 exit: () => {}
});

20260108_0910_Image Generation_simple_compose_01kef9bb8je9rtrptm6nrapw19

About

Minimal guard that enforces Git Stunts tests/benchmarks Docker-only policy. Complete with banner, env detection, and test-friendly hooks.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /