Skip to content

Commit

Permalink
replacing writeFile with writeFileSync
Browse files Browse the repository at this point in the history
  • Loading branch information
vmjoseph committed Apr 15, 2024
1 parent fa1cb5d commit 234761d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/artifact/__tests__/upload-artifact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {noopLogs} from './common'
import {FilesNotFoundError} from '../src/internal/shared/errors'
import {BlockBlobClient} from '@azure/storage-blob'
import * as fs from 'fs'
import {writeFile} from 'fs/promises'
import {writeFileSync} from 'fs/promises'
import * as path from 'path'

describe('upload-artifact', () => {
Expand Down Expand Up @@ -363,10 +363,10 @@ describe('upload-artifact', () => {
fs.mkdirSync(dirPath, {recursive: true})
}

await writeFile(path.join(dirPath, 'file1.txt'), 'test file content')
await writeFile(path.join(dirPath, 'file2.txt'), 'test file content')
writeFileSync(path.join(dirPath, 'file1.txt'), 'test file content')
writeFileSync(path.join(dirPath, 'file2.txt'), 'test file content')

await writeFile(path.join(dirPath, 'file3.txt'), 'test file content')
writeFileSync(path.join(dirPath, 'file3.txt'), 'test file content')

jest
.spyOn(uploadZipSpecification, 'validateRootDirectory')
Expand Down

0 comments on commit 234761d

Please sign in to comment.