Skip to content

Commit 1d2c976

Browse files
authored
chore(smoke-tests): move files into its own package (#6625)
* Add smoke-test package * Move files and fix package * Remove extraneous "undici-type" dep * Update CI to use the new package
1 parent 4f5b48e commit 1d2c976

23 files changed

+259
-31
lines changed

.evergreen/functions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ functions:
687687
if [[ "$IS_OSX" == "true" ]]; then
688688
echo "Disabling clipboard usage in e2e tests (TODO: https://jira.mongodb.org/browse/BUILD-14780)"
689689
export COMPASS_E2E_DISABLE_CLIPBOARD_USAGE="true"
690-
npm run --unsafe-perm --workspace compass-e2e-tests smoketest -- --package=osx_dmg
690+
npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_dmg
691691
# TODO: osx_zip
692692
fi
693693

package-lock.json

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

packages/compass-e2e-tests/.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@ fixtures/*.csv
44
fixtures/*.json
55
hadron-build-info.json
66

7-
# Ignoring sandboxes (created per test run)
8-
.smoke-sandboxes/
9-
# Cache of downloaded binaries
10-
.smoke-downloads/

packages/compass-e2e-tests/.prettierignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ fixtures
44
.nyc_output
55
coverage
66
hadron-build-info.json
7-
8-
# Ignoring sandboxes (created per test run)
9-
.smoke-sandboxes/
10-
# Cache of downloaded binaries
11-
.smoke-downloads/

packages/compass-e2e-tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"semver": "^7.6.2",
7474
"tree-kill": "^1.2.2",
7575
"ts-node": "^10.9.1",
76-
"undici-types": "^6",
7776
"webdriverio": "^9.4.1",
7877
"why-is-node-running": "^2.3.0",
7978
"xvfb-maybe": "^0.2.1",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ignores:
2+
- '@mongodb-js/prettier-config-compass'
3+
- '@mongodb-js/tsconfig-compass'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.nyc-output
2+
dist
3+
4+
# Sandboxes (created per test run)
5+
.sandboxes/
6+
# Cache of downloaded files
7+
.downloads/
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@mongodb-js/eslint-config-compass'],
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: ['./tsconfig.json'],
7+
},
8+
overrides: [
9+
{
10+
files: ['**/*.ts'],
11+
rules: {
12+
'no-console': 0,
13+
},
14+
},
15+
],
16+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sandboxes (created per test run)
2+
.sandboxes/
3+
# Cache of downloaded files
4+
.downloads/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.nyc_output
2+
dist
3+
coverage
4+
5+
# Sandboxes (created per test run)
6+
.sandboxes/
7+
# Cache of downloaded files
8+
.downloads/

0 commit comments

Comments
 (0)