1313 * under the License.
1414 */
1515
16- const { printPath, setupST , startSTWithMultitenancy , killAllST , cleanST } = require ( "../utils" ) ;
16+ const { printPath, createCoreApplicationWithMultitenancy } = require ( "../utils" ) ;
1717let STExpress = require ( "../../" ) ;
1818let assert = require ( "assert" ) ;
1919let { ProcessState } = require ( "../../lib/build/processState" ) ;
@@ -23,18 +23,12 @@ let ThirdParty = require("../../lib/build/recipe/thirdparty");
2323
2424describe ( `oidcTest: ${ printPath ( "[test/thirdparty/oidc.test.js]" ) } ` , function ( ) {
2525 beforeEach ( async function ( ) {
26- await killAllST ( ) ;
27- await setupST ( ) ;
2826 ProcessState . getInstance ( ) . reset ( ) ;
2927 } ) ;
3028
31- after ( async function ( ) {
32- await killAllST ( ) ;
33- await cleanST ( ) ;
34- } ) ;
3529
3630 it ( "should use code challenge method S256 if supported by the provider" , async function ( ) {
37- const connectionURI = await startSTWithMultitenancy ( ) ;
31+ const connectionURI = await createCoreApplicationWithMultitenancy ( ) ;
3832
3933 STExpress . init ( {
4034 supertokens : {
@@ -86,7 +80,7 @@ describe(`oidcTest: ${printPath("[test/thirdparty/oidc.test.js]")}`, function ()
8680 } ) ;
8781
8882 it ( "should not use pkce if oidc response does not support S256" , async function ( ) {
89- const connectionURI = await startSTWithMultitenancy ( ) ;
83+ const connectionURI = await createCoreApplicationWithMultitenancy ( ) ;
9084
9185 STExpress . init ( {
9286 supertokens : {
@@ -131,7 +125,7 @@ describe(`oidcTest: ${printPath("[test/thirdparty/oidc.test.js]")}`, function ()
131125 } ) ;
132126
133127 it ( "should use pkce if oidc response does not support S256 but forcePKCE is true" , async function ( ) {
134- const connectionURI = await startSTWithMultitenancy ( ) ;
128+ const connectionURI = await createCoreApplicationWithMultitenancy ( ) ;
135129
136130 STExpress . init ( {
137131 supertokens : {
0 commit comments