File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 44 * Licensed under the BSD 3-Clause license.
55 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66 */
7+ import { dirname } from 'node:path' ;
8+ import { fileURLToPath } from 'node:url' ;
79import { AuthInfo , Messages , Org , SfError } from '@salesforce/core' ;
810import { MockTestOrgData , TestContext } from '@salesforce/core/lib/testSetup.js' ;
911import { SinonStub } from 'sinon' ;
@@ -15,7 +17,7 @@ import DeleteScratch from '../../../src/commands/org/delete/scratch.js';
1517
1618config . truncateThreshold = 0 ;
1719
18- Messages . importMessagesDirectory ( __dirname ) ;
20+ Messages . importMessagesDirectory ( dirname ( fileURLToPath ( import . meta . url ) ) ) ;
1921const sbxOrgMessages = Messages . loadMessages ( '@salesforce/plugin-org' , 'delete_sandbox' ) ;
2022const scratchOrgMessages = Messages . loadMessages ( '@salesforce/plugin-org' , 'delete_scratch' ) ;
2123const deleteMessages = Messages . loadMessages ( '@salesforce/plugin-org' , 'delete' ) ;
You can’t perform that action at this time.
0 commit comments