Skip to content

Commit ac0399f

Browse files
committed
chore(e2e-tests): import from @mongosh/testing
1 parent ea464cb commit ac0399f

18 files changed

+30
-39
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/e2e-tests/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"dependencies": {
3030
"@mongosh/cli-repl": "2.5.10",
3131
"@mongosh/service-provider-core": "3.7.0",
32+
"@mongosh/testing": "0.0.0-dev.0",
3233
"@mongodb-js/oidc-plugin": "^2.0.5",
3334
"strip-ansi": "^6.0.0"
3435
},

packages/e2e-tests/test/e2e-analytics.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from 'chai';
2-
import { startTestCluster } from '../../testing/src/integration-testing-hooks';
3-
import { eventually } from '../../testing/src/eventually';
2+
import { startTestCluster, eventually } from '@mongosh/testing';
43

54
describe('e2e Analytics Node', function () {
65
const replSetName = 'replicaSet';

packages/e2e-tests/test/e2e-auth.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { expect } from 'chai';
22
import type { Db, Document, MongoClientOptions } from 'mongodb';
33
import { MongoClient } from 'mongodb';
4-
import { eventually } from '../../testing/src/eventually';
54
import type { TestShell } from './test-shell';
65
import {
6+
eventually,
77
skipIfApiStrict,
88
startSharedTestServer,
9-
} from '../../testing/src/integration-testing-hooks';
9+
} from '@mongosh/testing';
1010

1111
type AssertUserExists = (opts?: Document, username?: string) => Promise<void>;
1212
function createAssertUserExists(db: Db, dbName: string): AssertUserExists {

packages/e2e-tests/test/e2e-banners.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
skipIfApiStrict,
3-
startSharedTestServer,
4-
} from '../../testing/src/integration-testing-hooks';
1+
import { skipIfApiStrict, startSharedTestServer } from '@mongosh/testing';
52
import type { TestShell } from './test-shell';
63

74
describe('e2e startup banners', function () {

packages/e2e-tests/test/e2e-bson.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Db } from 'mongodb';
33
import { MongoClient } from 'mongodb';
44
import * as bson from 'bson';
55
import type { TestShell } from './test-shell';
6-
import { startSharedTestServer } from '../../testing/src/integration-testing-hooks';
6+
import { startSharedTestServer } from '@mongosh/testing';
77

88
describe('BSON e2e', function () {
99
const testServer = startSharedTestServer();

packages/e2e-tests/test/e2e-direct.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2+
eventually,
23
startTestCluster,
34
skipIfServerVersion,
45
skipIfApiStrict,
5-
} from '../../testing/src/integration-testing-hooks';
6-
import { eventually } from '../../testing/src/eventually';
6+
} from '@mongosh/testing';
77
import { expect } from 'chai';
88
import type { TestShell } from './test-shell';
99

packages/e2e-tests/test/e2e-editor.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect } from 'chai';
22
import path from 'path';
33
import { promises as fs } from 'fs';
4-
import { eventually } from '../../testing/src/eventually';
4+
import { eventually } from '@mongosh/testing';
55
import { TestShell } from './test-shell';
66
import { ensureTestShellAfterHook } from './test-shell-context';
77
import {

packages/e2e-tests/test/e2e-fle.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { expect } from 'chai';
22
import { MongoClient } from 'mongodb';
33
import type { TestShell } from './test-shell';
4-
import { eventually } from '../../testing/src/eventually';
54
import {
5+
eventually,
66
startTestServer,
77
skipIfApiStrict,
88
skipIfServerVersion,
99
skipIfCommunityServer,
1010
downloadCurrentCryptSharedLibrary,
1111
sortObjectArray,
12-
} from '../../testing/src/integration-testing-hooks';
12+
} from '@mongosh/testing';
1313
import {
1414
makeFakeHTTPServer,
1515
fakeAWSHandlers,

packages/e2e-tests/test/e2e-oidc.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import {
2+
getTestCertificatePath as getCertPath,
23
MongoRunnerSetup,
34
skipIfApiStrict,
45
skipIfEnvServerVersion,
5-
} from '../../testing/src/integration-testing-hooks';
6+
} from '@mongosh/testing';
67
import { promises as fs } from 'fs';
78
import type { OIDCMockProviderConfig } from '@mongodb-js/oidc-mock-provider';
89
import { OIDCMockProvider } from '@mongodb-js/oidc-mock-provider';
910
import type { TestShell } from './test-shell';
1011
import path from 'path';
1112
import { expect } from 'chai';
1213
import { createServer as createHTTPSServer } from 'https';
13-
import { getCertPath, readReplLogFile, useTmpdir } from './repl-helpers';
14+
import { readReplLogFile, useTmpdir } from './repl-helpers';
1415
import {
1516
baseOidcServerConfig,
1617
commonOidcServerArgs,

0 commit comments

Comments
 (0)