We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 260dd5a commit 6c9811cCopy full SHA for 6c9811c
tests/object-storage/object-storage.test.ts
@@ -1,12 +1,24 @@
1
-import { ObjectStorage } from 'lib/object-storage';
+import { ObjectStorage } from '../../lib/object-storage';
2
3
describe('ObjectStorage', () => {
4
let objectStorage: ObjectStorage;
5
+ const originalEnv = process.env;
6
7
beforeEach(() => {
8
+ // Set up test environment
9
+ process.env = {
10
+ ...originalEnv,
11
+ OBJECT_STORAGE_BUCKET: 'test-bucket-object-storage',
12
+ };
13
+
14
objectStorage = new ObjectStorage();
15
});
16
17
+ afterEach(() => {
18
+ // Restore original environment
19
+ process.env = originalEnv;
20
+ });
21
22
describe('uploadFile', () => {
23
it('should upload a file successfully', async () => {
24
const fileName = 'test-file.txt';
0 commit comments