From e9f03ffbdc74d317c520080792d85479c0c4bcd9 Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Tue, 25 Jun 2024 16:01:26 -0600 Subject: [PATCH] chore: fix fs import --- test/nuts/destructive/destructiveChanges.nut.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/nuts/destructive/destructiveChanges.nut.ts b/test/nuts/destructive/destructiveChanges.nut.ts index 59656368..c3115b17 100644 --- a/test/nuts/destructive/destructiveChanges.nut.ts +++ b/test/nuts/destructive/destructiveChanges.nut.ts @@ -6,7 +6,7 @@ */ import * as path from 'node:path'; -import fs, { writeFileSync } from 'node:fs'; +import { copyFileSync, writeFileSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { join } from 'node:path'; import { assert, expect } from 'chai'; @@ -246,11 +246,11 @@ describe('project deploy start --destructive NUTs', () => { createManifest(`ApexClass:${post}`, 'post'); createManifest(`ApexClass:${pre}`, 'pre'); // move the destructive changes files into the mdapi dirt - fs.copyFileSync( + copyFileSync( join(testkit.projectDir, 'destructiveChangesPre.xml'), join(testkit.projectDir, 'mdapi', 'destructiveChangesPre.xml') ); - fs.copyFileSync( + copyFileSync( join(testkit.projectDir, 'destructiveChangesPost.xml'), join(testkit.projectDir, 'mdapi', 'destructiveChangesPost.xml') );