Update test to use mock

This commit is contained in:
Salman Muin Kayser Chishti committed 2025-08-06 12:49:50 +01:00
1 parent d509a46b27
commit 11c03e66c9
1 file changed
+1 -1
+1 -1
View File
@@ -108,7 +108,7 @@ describe('upload-artifact', () => {
fixtures.files.map(file => ({
sourcePath: path.join(fixtures.uploadDirectory, file.name),
destinationPath: file.name,
stats: new fs.Stats()
stats: fs.statSync(path.join(fixtures.uploadDirectory, file.name))
}))
)
jest.spyOn(config, 'getRuntimeToken').mockReturnValue(fixtures.runtimeToken)