|
142 | 142 | "check:search-indexes": "nyc mocha --config test/mocha_mongodb.js test/manual/search-index-management.prose.test.ts", |
143 | 143 | "check:test": "mocha --config test/mocha_mongodb.js test/integration", |
144 | 144 | "check:unit": "nyc mocha test/unit", |
145 | | - "check:unit-bundled": "MONGODB_BUNDLED=true npm run build:bundle && npm run check:unit", |
| 145 | + "check:unit-bundled": "npm run switch:to-bundled && npm run check:unit || npm run switch:to-unbundled", |
146 | 146 | "check:ts": "node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit", |
147 | 147 | "check:atlas": "nyc mocha --config test/manual/mocharc.js test/manual/atlas_connectivity.test.ts", |
148 | 148 | "check:drivers-atlas-testing": "nyc mocha --config test/mocha_mongodb.js test/atlas/drivers_atlas_testing.test.ts", |
|
157 | 157 | "check:snappy": "nyc mocha test/unit/assorted/snappy.test.js", |
158 | 158 | "check:x509": "nyc mocha test/manual/x509_auth.test.ts", |
159 | 159 | "check:runtime-independence": "ts-node test/tools/runner/vm_context_helper.ts test/integration/change-streams/change_stream.test.ts", |
160 | | - "check:test-bundled": "MONGODB_BUNDLED=true npm run build:bundle && npm run check:test", |
| 160 | + "check:test-bundled": "npm run switch:to-bundled && npm run check:test || npm run switch:to-unbundled", |
161 | 161 | "build:bundle": "npm run bundle:driver && npm run bundle:types && npm run build:runtime-barrel", |
162 | 162 | "build:runtime-barrel": "node etc/build-runtime-barrel.mjs", |
163 | 163 | "bundle:driver": "node etc/bundle-driver.mjs", |
164 | 164 | "bundle:types": "npx tsc --project ./tsconfig.json --declaration --emitDeclarationOnly --declarationDir test/tools/runner/bundle/types", |
165 | 165 | "fix:eslint": "npm run check:eslint -- --fix", |
166 | 166 | "prepare": "node etc/prepare.js", |
167 | 167 | "preview:docs": "ts-node etc/docs/preview.ts", |
| 168 | + "switch:to-bundled": "MONGODB_BUNDLED=true npm run build:runtime-barrel", |
| 169 | + "switch:to-unbundled": "MONGODB_BUNDLED=false npm run build:runtime-barrel", |
168 | 170 | "test": "npm run check:lint && npm run test:all", |
169 | 171 | "test:all": "npm run check:unit && npm run check:test", |
170 | 172 | "update:docs": "npm run build:docs -- --yes" |
|
0 commit comments