From 7706c38d3d4c7b4d501dc68768b1ba61645a3019 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 12 Nov 2021 12:07:37 +0900 Subject: [PATCH] fix test --- package.json | 2 +- {test => packages/backend/test}/.eslintrc | 0 {test => packages/backend/test}/activitypub.ts | 0 {test => packages/backend/test}/ap-request.ts | 0 {test => packages/backend/test}/api-visibility.ts | 0 {test => packages/backend/test}/api.ts | 0 {test => packages/backend/test}/block.ts | 0 {test => packages/backend/test}/chart.ts | 0 {test => packages/backend/test}/docker-compose.yml | 0 {test => packages/backend/test}/extract-mentions.ts | 0 {test => packages/backend/test}/fetch-resource.ts | 0 {test => packages/backend/test}/ff-visibility.ts | 0 {test => packages/backend/test}/get-file-info.ts | 0 {test => packages/backend/test}/mfm.ts | 0 .../backend/test}/misc/mock-resolver.ts | 0 {test => packages/backend/test}/mute.ts | 0 {test => packages/backend/test}/note.ts | 0 {test => packages/backend/test}/prelude/maybe.ts | 0 {test => packages/backend/test}/prelude/url.ts | 0 {test => packages/backend/test}/reaction-lib.ts | 0 .../backend/test}/resources/25000x25000.png | Bin {test => packages/backend/test}/resources/Lenna.jpg | Bin {test => packages/backend/test}/resources/Lenna.png | Bin {test => packages/backend/test}/resources/anime.gif | Bin {test => packages/backend/test}/resources/anime.png | Bin {test => packages/backend/test}/resources/emptyfile | 0 {test => packages/backend/test}/resources/image.svg | Bin .../backend/test}/resources/with-alpha.png | Bin .../backend/test}/resources/with-xml-def.svg | Bin {test => packages/backend/test}/streaming.ts | 0 {test => packages/backend/test}/test.yml | 0 {test => packages/backend/test}/thread-mute.ts | 0 {test => packages/backend/test}/tsconfig.json | 0 {test => packages/backend/test}/user-notes.ts | 0 {test => packages/backend/test}/utils.ts | 2 +- 35 files changed, 2 insertions(+), 2 deletions(-) rename {test => packages/backend/test}/.eslintrc (100%) rename {test => packages/backend/test}/activitypub.ts (100%) rename {test => packages/backend/test}/ap-request.ts (100%) rename {test => packages/backend/test}/api-visibility.ts (100%) rename {test => packages/backend/test}/api.ts (100%) rename {test => packages/backend/test}/block.ts (100%) rename {test => packages/backend/test}/chart.ts (100%) rename {test => packages/backend/test}/docker-compose.yml (100%) rename {test => packages/backend/test}/extract-mentions.ts (100%) rename {test => packages/backend/test}/fetch-resource.ts (100%) rename {test => packages/backend/test}/ff-visibility.ts (100%) rename {test => packages/backend/test}/get-file-info.ts (100%) rename {test => packages/backend/test}/mfm.ts (100%) rename {test => packages/backend/test}/misc/mock-resolver.ts (100%) rename {test => packages/backend/test}/mute.ts (100%) rename {test => packages/backend/test}/note.ts (100%) rename {test => packages/backend/test}/prelude/maybe.ts (100%) rename {test => packages/backend/test}/prelude/url.ts (100%) rename {test => packages/backend/test}/reaction-lib.ts (100%) rename {test => packages/backend/test}/resources/25000x25000.png (100%) rename {test => packages/backend/test}/resources/Lenna.jpg (100%) rename {test => packages/backend/test}/resources/Lenna.png (100%) rename {test => packages/backend/test}/resources/anime.gif (100%) rename {test => packages/backend/test}/resources/anime.png (100%) rename {test => packages/backend/test}/resources/emptyfile (100%) rename {test => packages/backend/test}/resources/image.svg (100%) rename {test => packages/backend/test}/resources/with-alpha.png (100%) rename {test => packages/backend/test}/resources/with-xml-def.svg (100%) rename {test => packages/backend/test}/streaming.ts (100%) rename {test => packages/backend/test}/test.yml (100%) rename {test => packages/backend/test}/thread-mute.ts (100%) rename {test => packages/backend/test}/tsconfig.json (100%) rename {test => packages/backend/test}/user-notes.ts (100%) rename {test => packages/backend/test}/utils.ts (98%) diff --git a/package.json b/package.json index 07763b9003..f577fed1b8 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "cy:open": "cypress open", "cy:run": "cypress run", "e2e": "start-server-and-test start:test http://localhost:61812 cy:run", - "mocha": "cd packages/backend && cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha", + "mocha": "cd packages/backend && cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" npx mocha", "test": "npm run mocha", "format": "gulp format", "clean": "node ./scripts/clean.js" diff --git a/test/.eslintrc b/packages/backend/test/.eslintrc similarity index 100% rename from test/.eslintrc rename to packages/backend/test/.eslintrc diff --git a/test/activitypub.ts b/packages/backend/test/activitypub.ts similarity index 100% rename from test/activitypub.ts rename to packages/backend/test/activitypub.ts diff --git a/test/ap-request.ts b/packages/backend/test/ap-request.ts similarity index 100% rename from test/ap-request.ts rename to packages/backend/test/ap-request.ts diff --git a/test/api-visibility.ts b/packages/backend/test/api-visibility.ts similarity index 100% rename from test/api-visibility.ts rename to packages/backend/test/api-visibility.ts diff --git a/test/api.ts b/packages/backend/test/api.ts similarity index 100% rename from test/api.ts rename to packages/backend/test/api.ts diff --git a/test/block.ts b/packages/backend/test/block.ts similarity index 100% rename from test/block.ts rename to packages/backend/test/block.ts diff --git a/test/chart.ts b/packages/backend/test/chart.ts similarity index 100% rename from test/chart.ts rename to packages/backend/test/chart.ts diff --git a/test/docker-compose.yml b/packages/backend/test/docker-compose.yml similarity index 100% rename from test/docker-compose.yml rename to packages/backend/test/docker-compose.yml diff --git a/test/extract-mentions.ts b/packages/backend/test/extract-mentions.ts similarity index 100% rename from test/extract-mentions.ts rename to packages/backend/test/extract-mentions.ts diff --git a/test/fetch-resource.ts b/packages/backend/test/fetch-resource.ts similarity index 100% rename from test/fetch-resource.ts rename to packages/backend/test/fetch-resource.ts diff --git a/test/ff-visibility.ts b/packages/backend/test/ff-visibility.ts similarity index 100% rename from test/ff-visibility.ts rename to packages/backend/test/ff-visibility.ts diff --git a/test/get-file-info.ts b/packages/backend/test/get-file-info.ts similarity index 100% rename from test/get-file-info.ts rename to packages/backend/test/get-file-info.ts diff --git a/test/mfm.ts b/packages/backend/test/mfm.ts similarity index 100% rename from test/mfm.ts rename to packages/backend/test/mfm.ts diff --git a/test/misc/mock-resolver.ts b/packages/backend/test/misc/mock-resolver.ts similarity index 100% rename from test/misc/mock-resolver.ts rename to packages/backend/test/misc/mock-resolver.ts diff --git a/test/mute.ts b/packages/backend/test/mute.ts similarity index 100% rename from test/mute.ts rename to packages/backend/test/mute.ts diff --git a/test/note.ts b/packages/backend/test/note.ts similarity index 100% rename from test/note.ts rename to packages/backend/test/note.ts diff --git a/test/prelude/maybe.ts b/packages/backend/test/prelude/maybe.ts similarity index 100% rename from test/prelude/maybe.ts rename to packages/backend/test/prelude/maybe.ts diff --git a/test/prelude/url.ts b/packages/backend/test/prelude/url.ts similarity index 100% rename from test/prelude/url.ts rename to packages/backend/test/prelude/url.ts diff --git a/test/reaction-lib.ts b/packages/backend/test/reaction-lib.ts similarity index 100% rename from test/reaction-lib.ts rename to packages/backend/test/reaction-lib.ts diff --git a/test/resources/25000x25000.png b/packages/backend/test/resources/25000x25000.png similarity index 100% rename from test/resources/25000x25000.png rename to packages/backend/test/resources/25000x25000.png diff --git a/test/resources/Lenna.jpg b/packages/backend/test/resources/Lenna.jpg similarity index 100% rename from test/resources/Lenna.jpg rename to packages/backend/test/resources/Lenna.jpg diff --git a/test/resources/Lenna.png b/packages/backend/test/resources/Lenna.png similarity index 100% rename from test/resources/Lenna.png rename to packages/backend/test/resources/Lenna.png diff --git a/test/resources/anime.gif b/packages/backend/test/resources/anime.gif similarity index 100% rename from test/resources/anime.gif rename to packages/backend/test/resources/anime.gif diff --git a/test/resources/anime.png b/packages/backend/test/resources/anime.png similarity index 100% rename from test/resources/anime.png rename to packages/backend/test/resources/anime.png diff --git a/test/resources/emptyfile b/packages/backend/test/resources/emptyfile similarity index 100% rename from test/resources/emptyfile rename to packages/backend/test/resources/emptyfile diff --git a/test/resources/image.svg b/packages/backend/test/resources/image.svg similarity index 100% rename from test/resources/image.svg rename to packages/backend/test/resources/image.svg diff --git a/test/resources/with-alpha.png b/packages/backend/test/resources/with-alpha.png similarity index 100% rename from test/resources/with-alpha.png rename to packages/backend/test/resources/with-alpha.png diff --git a/test/resources/with-xml-def.svg b/packages/backend/test/resources/with-xml-def.svg similarity index 100% rename from test/resources/with-xml-def.svg rename to packages/backend/test/resources/with-xml-def.svg diff --git a/test/streaming.ts b/packages/backend/test/streaming.ts similarity index 100% rename from test/streaming.ts rename to packages/backend/test/streaming.ts diff --git a/test/test.yml b/packages/backend/test/test.yml similarity index 100% rename from test/test.yml rename to packages/backend/test/test.yml diff --git a/test/thread-mute.ts b/packages/backend/test/thread-mute.ts similarity index 100% rename from test/thread-mute.ts rename to packages/backend/test/thread-mute.ts diff --git a/test/tsconfig.json b/packages/backend/test/tsconfig.json similarity index 100% rename from test/tsconfig.json rename to packages/backend/test/tsconfig.json diff --git a/test/user-notes.ts b/packages/backend/test/user-notes.ts similarity index 100% rename from test/user-notes.ts rename to packages/backend/test/user-notes.ts diff --git a/test/utils.ts b/packages/backend/test/utils.ts similarity index 98% rename from test/utils.ts rename to packages/backend/test/utils.ts index 54bcf65ab1..b7f6cfbdac 100644 --- a/test/utils.ts +++ b/packages/backend/test/utils.ts @@ -179,7 +179,7 @@ export function startServer(timeout = 30 * 1000): Promise