Skip to content

Instantly share code, notes, and snippets.

@radekbenkel
Created February 6, 2025 10:44
Show Gist options
  • Save radekbenkel/6cede03ae57d93d5d238667476e1851c to your computer and use it in GitHub Desktop.
Save radekbenkel/6cede03ae57d93d5d238667476e1851c to your computer and use it in GitHub Desktop.
nock@14 & testcontainers
import { GenericContainer } from 'testcontainers';
// uncomment next line to see bug
// import nock from 'nock';
const container = new GenericContainer("alpine");
const startedContainer = await container.start();
console.info('Container started');
await startedContainer.stop();
console.info('Container stopped');
{
"name": "nock-testcontainers-test",
"version": "1.0.0",
"main": "index.mjs",
"devDependencies": {
"nock": "^14.0.0",
"testcontainers": "^10.17.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment