-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testcontainers example #491
base: master
Are you sure you want to change the base?
Conversation
testcontainers/setupRedis.ts
Outdated
|
||
// const testContainersRedis = await import("@testcontainers/redis") | ||
// const container = await new testContainersRedis.RedisContainer().withReuse().start() | ||
// const client = await connectToRedis(container.getConnectionUrl()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we perhaps get rid of that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes!
@@ -0,0 +1,22 @@ | |||
import express from "express" | |||
import { setupRedis } from "./setupRedis.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, shall we get rid of .js
? Or it's necessary? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, b/c we use mjs Syntax
I'd say let's also commit the lock file. |
Did devcontainers turn into testcontainers? |
Adds an example using Testcontainers in a Docker Compose environment for local and cloud development, with or without a local Docker engine.
https://node.testcontainers.org/features/compose/