Skip to content

Commit

Permalink
chore: use @minatojs/driver-memory directly
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jul 30, 2024
1 parent 2020a38 commit 3bb19f4
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 14 deletions.
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,16 @@
"license": "MIT",
"devDependencies": {
"@cordisjs/eslint-config": "^1.1.1",
"@koishijs/plugin-database-memory": "npm:@minatojs/driver-memory@^3.4.0",
"@octokit/webhooks-types": "^7.4.0",
"@sinonjs/fake-timers": "^6.0.1",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^9.1.1",
"@types/node": "^20.11.30",
"@types/node": "^20.14.11",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.8",
"@types/sinonjs__fake-timers": "^6.0.4",
"@types/source-map-support": "^0.5.10",
"c8": "^7.14.0",
"cac": "^6.7.14",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.3",
"esbuild": "^0.18.20",
"esbuild-register": "^3.5.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
"koishi"
],
"devDependencies": {
"chai": "^4.4.1",
"@minatojs/driver-memory": "^3.4.0",
"@types/chai": "^4.3.16",
"@types/chai-as-promised": "^7.1.8",
"chai": "^5.1.1",
"chai-as-promised": "^7.1.1",
"chai-shape": "^1.0.0"
"chai-shape": "^1.1.0"
},
"dependencies": {
"@koishijs/i18n-utils": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/database.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App } from 'koishi'
import { expect, use } from 'chai'
import mock from '@koishijs/plugin-mock'
import memory from '@koishijs/plugin-database-memory'
import memory from '@minatojs/driver-memory'
import shape from 'chai-shape'
import promise from 'chai-as-promised'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/runtime.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { App, User, Channel, sleep } from 'koishi'
import mock, { DEFAULT_SELF_ID } from '@koishijs/plugin-mock'
import memory from '@koishijs/plugin-database-memory'
import memory from '@minatojs/driver-memory'
import { install } from '@sinonjs/fake-timers'

const app = new App()
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/session.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { App, sleep } from 'koishi'
import mock from '@koishijs/plugin-mock'
import memory from '@koishijs/plugin-database-memory'
import memory from '@minatojs/driver-memory'

describe('Session API', () => {
describe('Command Execution', () => {
Expand Down
1 change: 1 addition & 0 deletions plugins/common/bind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.10"
"@minatojs/driver-memory": "^3.4.0",
}
}
2 changes: 1 addition & 1 deletion plugins/common/bind/tests/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Context } from 'koishi'
import * as bind from '@koishijs/plugin-bind'
import memory from '@koishijs/plugin-database-memory'
import memory from '@minatojs/driver-memory'
import mock from '@koishijs/plugin-mock'

const app = new Context()
Expand Down
1 change: 1 addition & 0 deletions plugins/common/broadcast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.10"
"@minatojs/driver-memory": "^3.4.0",
}
}
2 changes: 1 addition & 1 deletion plugins/common/broadcast/tests/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { App, Bot, Channel } from 'koishi'
import * as broadcast from '@koishijs/plugin-broadcast'
import memory from '@koishijs/plugin-database-memory'
import memory from '@minatojs/driver-memory'
import mock from '@koishijs/plugin-mock'
import { mock as jest } from 'node:test'
import { expect } from 'chai'
Expand Down
1 change: 1 addition & 0 deletions plugins/common/help/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.10"
"@minatojs/driver-memory": "^3.4.0",
}
}
2 changes: 1 addition & 1 deletion plugins/common/help/tests/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App } from 'koishi'
import * as help from '@koishijs/plugin-help'
import mock from '@koishijs/plugin-mock'
import memory from '@koishijs/plugin-database-memory'
import memory from '@minatojs/driver-memory'

const app = new App({
minSimilarity: 0.64,
Expand Down

0 comments on commit 3bb19f4

Please sign in to comment.