Skip to content

Commit

Permalink
chore: remove edge mock
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jan 30, 2024
1 parent 4778282 commit fa190d9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 470 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"dotenv": "^16.3.1",
"edge-mock": "^0.0.15",
"esbuild": "^0.17.5",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
Expand Down
5 changes: 2 additions & 3 deletions test/commander/commander.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { EdgeKVNamespace } from 'edge-mock';

import Environment from '@/env';
import { ISSUE_REGEX } from '@/im/commands/constants';
import { LocalKV } from '@/runtime/node/kv';
import { NodeQueue } from '@/runtime/node/queue';
import { CommandCenter } from '@opensumi/bot-commander';

const testEnv: IRuntimeEnv = {
KV: new EdgeKVNamespace(),
KV: new LocalKV(),
MESSAGE_QUEUE: new NodeQueue(),
};

Expand Down
27 changes: 0 additions & 27 deletions test/handle.test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions test/queue/base.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { makeEdgeEnv } from 'edge-mock';
makeEdgeEnv();

import { QueueConsumer } from '@/queue';
import { BaseWorker } from '@/queue/worker';

Expand Down
Loading

0 comments on commit fa190d9

Please sign in to comment.