Skip to content

Commit ca2fb68

Browse files
committed
chore: add workspace
1 parent 67f25c2 commit ca2fb68

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

knip.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const config: KnipConfig = {
1818
"config/**",
1919
"configs/**",
2020
"**/.eslintrc.js",
21-
"testing/tsconfig.json",
2221
],
2322

2423
// Received from @mongodb-js/sbom-tools
@@ -43,8 +42,7 @@ const config: KnipConfig = {
4342

4443
// Special cases for packages with different entry points
4544
"packages/cli-repl": {
46-
entry: ["dist/add-module-mapping.js"],
47-
project: ["src/**/*.ts", "bin/**/*.js"],
45+
project: ["src/**/*.ts", "bin/**/*.js", "test/**/*.ts"],
4846
ignoreDependencies: [
4947
// Eagerly loaded startup snapshot dependencies
5048
"@mongodb-js/saslprep",
@@ -141,6 +139,11 @@ const config: KnipConfig = {
141139
"packages/snippet-manager": {
142140
entry: ["test/fixtures/**/*"],
143141
},
142+
143+
testing: {
144+
entry: ["src/**/*.ts"],
145+
project: ["src/**/*.ts"],
146+
},
144147
},
145148

146149
// Mocha test files configuration

package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"lerna": "^8.1.8"
129129
},
130130
"workspaces": [
131+
"testing",
131132
"configs/eslint-config-mongosh",
132133
"configs/tsconfig-mongosh",
133134
"scripts/docker",

packages/cli-repl/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@
112112
"mongodb-crypt-library-dummy": "^1.0.2",
113113
"prettier": "^2.8.8",
114114
"webpack-merge": "^5.8.0",
115-
"@mongosh/testing": "0.0.0-dev.0"
115+
"@mongosh/testing": "0.0.0-dev.0",
116+
"@types/chai-as-promised": "^7.1.3",
117+
"chai-as-promised": "^7.1.1"
116118
},
117119
"optionalDependencies": {
118120
"get-console-process-list": "^1.0.5",

packages/cli-repl/test/repl-helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ async function readReplLogFile(
100100
// eslint-disable-next-line mocha/no-exports
101101
export {
102102
expect,
103-
sinon,
104103
useTmpdir,
105104
tick,
106105
waitBus,

packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"@mongodb-js/prettier-config-devtools": "^1.0.1",
3838
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
3939
"@types/chai-as-promised": "^7.1.3",
40+
"chai-as-promised": "^7.1.1",
4041
"@types/node": "^22.15.30",
4142
"@types/rimraf": "^3.0.0",
4243
"bson": "^6.10.4",
43-
"chai-as-promised": "^7.1.1",
4444
"depcheck": "^1.4.7",
4545
"eslint": "^7.25.0",
4646
"lodash": "^4.17.21",

testing/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"scripts": {
1818
"compile": "tsc -p tsconfig.json",
19-
"bootstrap": "npm run compile",
2019
"eslint": "eslint",
2120
"lint": "npm run eslint . && npm run prettier -- --check .",
2221
"prettier": "prettier",

0 commit comments

Comments
 (0)