Skip to content

Commit 2af4809

Browse files
committed
fix(testing): Removed obsolete session property on TestContainer
1 parent 3fee10e commit 2af4809

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/nest-utils/src/testing/container/test-container.ts

-12
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ export class TestContainer {
4545
* if `enableEndToEnd` is set to `true` in the `TestContainerOptions`.
4646
*/
4747
supertest?: Supertest;
48-
/**
49-
* The session that will be used to authenticate requests when end-to-end testing. This will
50-
* only be defined if `authOptions` is provided in the `TestContainerOptions`.
51-
*/
52-
readonly session?: Partial<SessionResource>;
5348

5449
private constructor(init: OmitFunctionMembers<TestContainer>) {
5550
Object.assign(this, init);
@@ -111,11 +106,4 @@ export class TestContainer {
111106
// Return the test container
112107
return new TestContainer({ module, app, supertest });
113108
}
114-
115-
/**
116-
* Sets the session that is being used to authenticate requests.
117-
*/
118-
setSession(session: Partial<SessionResource>) {
119-
Object.assign(this.session, session);
120-
}
121109
}

0 commit comments

Comments
 (0)