From daaf4fd2278b06b7677ac4a23ce0450833f064ee Mon Sep 17 00:00:00 2001 From: Takeru KIDO Date: Sat, 6 Jan 2024 19:22:28 +0900 Subject: [PATCH] Fix importing cosmos db in localhost --- cosmosdb/src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmosdb/src/common.ts b/cosmosdb/src/common.ts index 53deaf3..8ac0141 100644 --- a/cosmosdb/src/common.ts +++ b/cosmosdb/src/common.ts @@ -41,7 +41,7 @@ export const createImportData = (): ImportData => { (dirResult: ImportDatabaseData, testName: string) => { // テスト名のjsonファイル名からjsonの中身を読込み const importItems: ImportItem[] = JSON.parse( - readFileSync(join(dataPath, courseName, testName), "utf8") + readFileSync(join(dataPath, courseName, `${testName}.json`), "utf8") ); dirResult[testName] = importItems;