Skip to content

Commit 75dbc1b

Browse files
committed
chore(NODE-4160): move to other examples
1 parent fd944cb commit 75dbc1b

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
"check:bench": "node test/benchmarks/driverBench",
9999
"check:coverage": "nyc npm run test:all",
100100
"check:integration-coverage": "nyc npm run check:test",
101-
"check:lambda": "mocha --config test/examples/mocha_lambda.json test/examples/handler.test.js",
102-
"check:lambda:aws": "mocha --config test/examples/mocha_lambda.json test/examples/aws_handler.test.js",
101+
"check:lambda": "mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js",
102+
"check:lambda:aws": "mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js",
103103
"check:lint": "npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd",
104104
"check:eslint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
105105
"check:tsd": "tsd --version && tsd",

test/examples/setup.js renamed to test/integration/node-specific/examples/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const loader = Module._load;
88
// const { MongoClient } = require('mongodb');
99
Module._load = function (request) {
1010
if (request === 'mongodb') {
11-
arguments[0] = path.join(__dirname, '..', '..', 'lib');
11+
arguments[0] = path.join(__dirname, '..', '..', '..', '..', 'lib');
1212
}
1313
return loader.apply(this, arguments);
1414
};

test/examples/mocha_lambda.json renamed to test/mocha_lambda.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/mocharc.json",
33
"require": [
4-
"test/examples/setup.js"
4+
"test/integration/node-specific/examples/setup.js"
55
],
66
"extension": ["js"],
77
"ui": "test/tools/runner/metadata_ui.js",

0 commit comments

Comments
 (0)