Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.idea/
dist/
.serverless/
coverage/

mdstream_project_summary.txt

Expand Down
20 changes: 20 additions & 0 deletions backend/__mocks__/@aws-sdk/client-s3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// __mocks__/@aws-sdk/client-s3.ts

// @ts-nocheck ← ここでも型チェック無効化してOK
import { jest } from '@jest/globals';

// 何でも受け取れるモック
export const mockSend = jest.fn();

export class S3Client {
constructor() {}
send = mockSend;
}

export class ListObjectsV2Command {
constructor(args) {}
}

export class GetObjectCommand {
constructor(args) {}
}
7 changes: 7 additions & 0 deletions backend/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// backend/jest.config.js
/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.ts']
}
Loading
Loading