Created
February 6, 2025 10:44
-
-
Save radekbenkel/6cede03ae57d93d5d238667476e1851c to your computer and use it in GitHub Desktop.
nock@14 & testcontainers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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