Skip to content

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