Skip to content

Commit 0f36974

Browse files
authored
test: Remove old integration tests (#922)
1 parent 1b599cd commit 0f36974

111 files changed

Lines changed: 19 additions & 2990 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/checks.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -136,36 +136,6 @@ jobs:
136136
node-version: [18, 20, 22, 24]
137137
os: [ubuntu-latest, windows-latest]
138138
runs-on: ${{ matrix.os }}
139-
steps:
140-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
141-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
142-
with:
143-
node-version: ${{ matrix.node-version }}
144-
- name: Use dependency cache
145-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
146-
id: dependency-cache
147-
with:
148-
path: "**/node_modules"
149-
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
150-
- name: Install dependencies
151-
run: yarn --frozen-lockfile --ignore-engines
152-
if: steps.dependency-cache.outputs.cache-hit != 'true'
153-
- name: Download build artifacts
154-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
155-
with:
156-
name: dist-artifacts-${{ github.run_id }}
157-
path: packages
158-
- run: yarn test:integration
159-
160-
test-integration-next:
161-
needs: build
162-
name: "Integration Tests Next (Node ${{ matrix.node-version }}, OS ${{ matrix.os }})"
163-
strategy:
164-
fail-fast: false
165-
matrix:
166-
node-version: [18, 20, 22, 24]
167-
os: [ubuntu-latest, windows-latest]
168-
runs-on: ${{ matrix.os }}
169139
steps:
170140
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
171141
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -188,7 +158,7 @@ jobs:
188158
with:
189159
name: dist-artifacts-${{ github.run_id }}
190160
path: packages
191-
- run: yarn test:integration-next
161+
- run: yarn test:integration
192162

193163
lint:
194164
needs: build

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"packages/dev-utils",
1212
"packages/esbuild-plugin",
1313
"packages/eslint-configs",
14-
"packages/integration-tests",
1514
"packages/playground",
1615
"packages/rollup-plugin",
1716
"packages/tsconfigs",
@@ -28,9 +27,8 @@
2827
"clean": "nx run-many --target=clean --all",
2928
"clean:all": "nx run-many --target=clean:all --all && yarn",
3029
"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",
32-
"test:integration": "nx run @sentry-internal/integration-tests:test",
33-
"test:integration-next": "nx run @sentry-internal/integration-tests-next:test",
30+
"test:unit": "nx run-many --target=test --all --exclude=@sentry-internal/integration-tests-next",
31+
"test:integration": "nx run @sentry-internal/integration-tests-next:test",
3432
"lint": "nx run-many --target=lint --all",
3533
"check:formatting": "oxfmt --check .",
3634
"fix:formatting": "oxfmt ."

packages/babel-plugin-component-annotate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
},
5252
"devDependencies": {
5353
"@babel/core": "7.18.5",
54+
"@types/babel__core": "^7.20.5",
5455
"@babel/preset-react": "^7.23.3",
5556
"@sentry-internal/eslint-config": "5.2.1",
5657
"@sentry-internal/sentry-bundler-plugin-tsconfig": "5.2.1",

packages/babel-plugin-component-annotate/src/experimental.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,16 +283,13 @@ function processJSX(context: JSXProcessingContext, jsxNode: Babel.NodePath): voi
283283
// NOTE: I don't know of a case where `openingElement` would have more than one item,
284284
// but it's safer to always iterate
285285
const paths = jsxNode.get("openingElement");
286-
const openingElements = Array.isArray(paths) ? paths : [paths];
286+
const openingElements = (
287+
Array.isArray(paths) ? paths : [paths]
288+
) as Babel.NodePath<Babel.types.JSXOpeningElement>[];
287289

288290
const hasInjectedAttributes = openingElements.reduce(
289291
(prev, openingElement) =>
290-
prev ||
291-
applyAttributes(
292-
context,
293-
openingElement as Babel.NodePath<Babel.types.JSXOpeningElement>,
294-
context.componentName
295-
),
292+
prev || applyAttributes(context, openingElement, context.componentName),
296293
false
297294
);
298295

packages/integration-tests-next/.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ module.exports = {
66
".eslintrc.js",
77
"fixtures/*/out",
88
"fixtures/*/src",
9-
// We ignore Vite fixtures for now because there are a couple of version mismatches.
9+
// We ignore Vite and Rollup fixtures for now because there are a couple of version mismatches.
1010
"fixtures/vite*/**/*",
11+
"fixtures/rollup*/**/*",
1112
],
1213
parserOptions: {
1314
tsconfigRootDir: __dirname,

packages/integration-tests-next/fixtures/webpack5/build-info.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"build-information-injection-test"};e.SENTRY_BUILD_INFO={"deps":["@babel/preset-react","@sentry/webpack-plugin","webpack","webpack-cli"],"depsVersions":{"webpack":5},"nodeVersion":"NODE_VERSION"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000",e._sentryDebugIdIdentifier="sentry-dbid-00000000-0000-0000-0000-000000000000");}catch(e){}}();
8+
"basic.js": "!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"build-information-injection-test"};e.SENTRY_BUILD_INFO={"deps":["@babel/preset-react","@sentry/webpack-plugin","babel-loader","webpack","webpack-cli"],"depsVersions":{"webpack":5},"nodeVersion":"NODE_VERSION"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000",e._sentryDebugIdIdentifier="sentry-dbid-00000000-0000-0000-0000-000000000000");}catch(e){}}();
99
/******/ (() => { // webpackBootstrap
1010
/******/ "use strict";
1111
// eslint-disable-next-line no-console

packages/integration-tests-next/fixtures/webpack5/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"type": "module",
66
"dependencies": {
7+
"babel-loader": "^8.0.0",
78
"webpack": "5.105.4",
89
"webpack-cli": "6.0.1",
910
"@babel/preset-react": "7.23.3",

packages/integration-tests/.eslintrc.js

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

packages/integration-tests/.gitignore

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

packages/integration-tests/README.md

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

0 commit comments

Comments
 (0)