Skip to content

Commit 17d28fc

Browse files
authored
test: Remove unused e2e tests (#915)
1 parent a456474 commit 17d28fc

21 files changed

Lines changed: 21 additions & 583 deletions

.github/workflows/checks.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -190,44 +190,6 @@ jobs:
190190
path: packages
191191
- run: yarn test:integration-next
192192

193-
test-e2e:
194-
# We only run E2E tests for non-fork PRs because the E2E tests require secrets to work and they can't be accessed from forks
195-
# Dependabot PRs sadly also don't have access to secrets, so we skip them as well
196-
if:
197-
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
198-
github.actor != 'dependabot[bot]' &&
199-
false # Debug ID backend changes broke the E2E tests, we need to revisit them
200-
needs: build
201-
name: E2E Tests
202-
runs-on: ubuntu-latest
203-
env:
204-
SENTRY_AUTH_TOKEN: ${{ secrets.E2E_TESTS_SENTRY_AUTH_TOKEN }}
205-
steps:
206-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
207-
- uses: volta-cli/action@007b1509d3ea9999dbba62ca34f4eb968363bb78 # v3
208-
- name: Use dependency cache
209-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
210-
id: dependency-cache
211-
with:
212-
path: "**/node_modules"
213-
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
214-
- name: Use build cache
215-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
216-
with:
217-
path: .nxcache
218-
key: build-cache-key-${{ runner.os }}-${{ matrix.target }}-${{ matrix.jobIndex }}-${{ github.run_id }}
219-
restore-keys: |
220-
build-cache-key-${{ runner.os }}-${{ matrix.target }}-${{ matrix.jobIndex }}-
221-
- name: Install dependencies
222-
run: yarn --frozen-lockfile --ignore-engines
223-
if: steps.dependency-cache.outputs.cache-hit != 'true'
224-
- name: Download build artifacts
225-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
226-
with:
227-
name: dist-artifacts-${{ github.run_id }}
228-
path: packages
229-
- run: yarn test:e2e
230-
231193
lint:
232194
needs: build
233195
name: Linter check

.oxfmtrc.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@
33
"printWidth": 100,
44
"experimentalSortPackageJson": false,
55
"trailingComma": "es5",
6-
"ignorePatterns": [
7-
"packages/e2e-tests/scenarios/*/ref/**/*",
8-
"packages/bundler-plugin-core/test/fixtures",
9-
".nxcache"
10-
]
6+
"ignorePatterns": ["packages/bundler-plugin-core/test/fixtures", ".nxcache"]
117
}

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"packages/babel-plugin-component-annotate",
1010
"packages/bundler-plugin-core",
1111
"packages/dev-utils",
12-
"packages/e2e-tests",
1312
"packages/esbuild-plugin",
1413
"packages/eslint-configs",
1514
"packages/integration-tests",
@@ -28,12 +27,10 @@
2827
"check:types": "nx run-many --target=check:types --all",
2928
"clean": "nx run-many --target=clean --all",
3029
"clean:all": "nx run-many --target=clean:all --all && yarn",
31-
"test": "nx run-many --target=test --all --exclude=@sentry-internal/bundler-plugin-e2e-tests",
32-
"test:all": "nx run-many --target=test --all",
33-
"test:unit": "nx run-many --target=test --all --exclude=@sentry-internal/integration-tests,@sentry-internal/integration-tests-next,@sentry-internal/bundler-plugin-e2e-tests",
30+
"test": "nx run-many --target=test --all",
31+
"test:unit": "nx run-many --target=test --all --exclude=@sentry-internal/integration-tests,@sentry-internal/integration-tests-next",
3432
"test:integration": "nx run @sentry-internal/integration-tests:test",
3533
"test:integration-next": "nx run @sentry-internal/integration-tests-next:test",
36-
"test:e2e": "nx run @sentry-internal/bundler-plugin-e2e-tests:test",
3734
"lint": "nx run-many --target=lint --all",
3835
"check:formatting": "oxfmt --check .",
3936
"fix:formatting": "oxfmt ."

packages/e2e-tests/.env.example

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/e2e-tests/.eslintrc.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/e2e-tests/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/e2e-tests/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/e2e-tests/package.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/e2e-tests/scenarios/basic-upload/__snapshots__/basic-upload.test.ts.snap

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)