Skip to content

Commit 8734c52

Browse files
authored
fix(test): fix failing integ tests. (aws#5724)
## Problem In the recent refactor (aws#5689), there is a mismatch in args between our fs and fs-extra. Not caught until integ tests were run. ## Solution have default write file method ignores encoding since it uses utf8 anyway. --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 33ade2e commit 8734c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/stepFunctions/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class StateMachineGraphCache {
6969
})
7070
this.writeFile =
7171
writeFileCustom ??
72-
(async (path: string, data: string, encoding: string) => {
73-
await fs.writeFile(path, data, { mode: encoding })
72+
(async (path: string, data: string, _encoding: string) => {
73+
await fs.writeFile(path, data)
7474
})
7575
this.logger = getLogger()
7676
this.getFileData = getFileData ?? httpsGetRequestWrapper

0 commit comments

Comments
 (0)