You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get strange error when trying to initialize a test container: Cannot find module 'testcontainers/src/utils/bound-ports
Testcontainer Logs
> npx jest issue.test.ts
FAIL src/issue.test.ts
● Test suite failed to run
Cannot find module 'testcontainers/src/utils/bound-ports' from '../../../node_modules/.pnpm/@[email protected]/node_modules/@testcontainers/couchbase/build/couchbase-container.js'
Require stack:
/Users/joeygreco/my_repo/node_modules/.pnpm/@[email protected]/node_modules/@testcontainers/couchbase/build/couchbase-container.js
/Users/joeygreco/my_repo/node_modules/.pnpm/@[email protected]/node_modules/@testcontainers/couchbase/build/index.js
src/issue.test.ts
> 1 | import { CouchbaseContainer, StartedCouchbaseContainer } from '@testcontainers/couchbase';
| ^
2 |
3 | let startedTestContainer;
4 |
at Resolver._throwModNotFoundError (../../../node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (../../../node_modules/.pnpm/@[email protected]/node_modules/@testcontainers/couchbase/src/couchbase-container.ts:10:1)
at Object.<anonymous> (../../../node_modules/.pnpm/@[email protected]/node_modules/@testcontainers/couchbase/src/index.ts:1:1)
at Object.<anonymous> (src/issue.test.ts:1:1)
Steps to Reproduce
Here's a basic Jest test that will fail with the above error:
import{CouchbaseContainer}from'@testcontainers/couchbase';describe('test connection',()=>{test('success',async()=>{// usage shown in example here: https://testcontainers.com/modules/couchbase/constcontainer1=awaitnewCouchbaseContainer().start();});});
Additionally, these imports are not exported in the @testcontainers/couchbase npm package:
Expected Behaviour
Able to initialize Couchbase as shown in examples
Actual Behaviour
Cannot find module 'testcontainers/src/utils/bound-ports
Testcontainer Logs
Steps to Reproduce
Here's a basic Jest test that will fail with the above error:
Additionally, these imports are not exported in the
@testcontainers/couchbase
npm package:Environment Information
Thanks!
The text was updated successfully, but these errors were encountered: