11/* eslint-disable no-restricted-imports */
2- import { appTestFixture as test , createApp , buildApp , generateExtension , cleanupApp } from '../setup/app.js'
2+ import { appTestFixture as test , createApp , buildApp , generateExtension , teardownApp } from '../setup/app.js'
33import { requireEnv } from '../setup/env.js'
44import { expect } from '@playwright/test'
55import * as fs from 'fs'
@@ -39,7 +39,7 @@ test.describe('App scaffold', () => {
3939 expect ( buildResult . exitCode , `build failed:\nstderr: ${ buildResult . stderr } ` ) . toBe ( 0 )
4040 } finally {
4141 fs . rmSync ( parentDir , { recursive : true , force : true } )
42- await cleanupApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
42+ await teardownApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
4343 }
4444 } )
4545
@@ -64,7 +64,7 @@ test.describe('App scaffold', () => {
6464 expect ( fs . existsSync ( path . join ( initResult . appDir , 'shopify.app.toml' ) ) ) . toBe ( true )
6565 } finally {
6666 fs . rmSync ( parentDir , { recursive : true , force : true } )
67- await cleanupApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
67+ await teardownApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
6868 }
6969 } )
7070
@@ -106,7 +106,7 @@ test.describe('App scaffold', () => {
106106 expect ( buildResult . exitCode , `build failed:\nstderr: ${ buildResult . stderr } ` ) . toBe ( 0 )
107107 } finally {
108108 fs . rmSync ( parentDir , { recursive : true , force : true } )
109- await cleanupApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
109+ await teardownApp ( { browserPage, appName, email : process . env . E2E_ACCOUNT_EMAIL , orgId : env . orgId } )
110110 }
111111 } )
112112} )
0 commit comments