|
10 | 10 | "directory": "packages/instrumentation-mongodb" |
11 | 11 | }, |
12 | 12 | "scripts": { |
13 | | - "docker:start": "docker run -e MONGODB_DB=opentelemetry-tests -e MONGODB_PORT=27017 -e MONGODB_HOST=127.0.0.1 -p 27017:27017 --rm mongo", |
14 | | - "test": "npm run test-v4 && npm run test-v5-v6", |
15 | | - "test-v3": "tav mongodb 3.7.4 npm run test-v3-run", |
16 | | - "test-v4": "tav mongodb 4.17.0 npm run test-v4-run", |
17 | | - "test-v5-v6": "npm run test-v5-v6-run", |
18 | | - "test-v3-run": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/**/mongodb-v3.test.ts'", |
19 | | - "test-v4-run": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/mongodb-v4-v5-v6.metrics.test.ts' 'test/**/mongodb-v4.test.ts'", |
20 | | - "test-v5-v6-run": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/mongodb-v4-v5-v6.metrics.test.ts' 'test/**/mongodb-v5-v6.test.ts'", |
21 | | - "test-all-versions": "tav", |
22 | | - "tdd": "npm run test-v5-v6-run -- --watch-extensions ts --watch", |
23 | 13 | "clean": "rimraf build/*", |
24 | 14 | "lint": "eslint . --ext .ts", |
25 | 15 | "lint:fix": "eslint . --ext .ts --fix", |
|
28 | 18 | "compile:with-dependencies": "nx run-many -t compile -p @opentelemetry/instrumentation-mongodb", |
29 | 19 | "compile": "tsc -p .", |
30 | 20 | "prepublishOnly": "npm run compile", |
| 21 | + "tdd": "npm run test-v5-v6-run -- --watch-extensions ts --watch", |
| 22 | + "test": "npm run test-v5-v6", |
| 23 | + "test-v3": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/**/mongodb-v3.test.ts'", |
| 24 | + "test-v4": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/mongodb-v4-v5-v6.metrics.test.ts' 'test/**/mongodb-v4.test.ts'", |
| 25 | + "test-v5-v6": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/mongodb-v4-v5-v6.metrics.test.ts' 'test/**/mongodb-v5-v6.test.ts'", |
| 26 | + "test:with-services-env": "cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test", |
| 27 | + "test-all-versions": "tav", |
| 28 | + "test-all-versions:with-services-env": "cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm run test-all-versions", |
| 29 | + "test-services:start": "cd ../.. && npm run test-services:start mongodb", |
| 30 | + "test-services:stop": "cd ../.. && npm run test-services:stop mongodb", |
31 | 31 | "watch": "tsc -w" |
32 | 32 | }, |
33 | 33 | "keywords": [ |
|
0 commit comments