@@ -2,16 +2,7 @@ import * as childProcess from 'child_process';
22import * as fs from 'fs' ;
33import * as path from 'path' ;
44
5- type NodeVersion = '18' | '20' | '21' ;
6-
7- interface VersionConfig {
8- ignoredPackages : Array < `@${'sentry' | 'sentry-internal' } /${string } `> ;
9- }
10-
115const UNIT_TEST_ENV = process . env . UNIT_TEST_ENV as 'node' | 'browser' | undefined ;
12-
13- const CURRENT_NODE_VERSION = process . version . replace ( 'v' , '' ) . split ( '.' ) [ 0 ] as NodeVersion ;
14-
156const RUN_AFFECTED = process . argv . includes ( '--affected' ) ;
167
178// These packages are tested separately in CI, so no need to run them here
@@ -35,19 +26,6 @@ const BROWSER_TEST_PACKAGES = [
3526 '@sentry/wasm' ,
3627] ;
3728
38- // These are Node-version specific tests that need to be skipped because of support
39- const SKIP_TEST_PACKAGES : Record < NodeVersion , VersionConfig > = {
40- '18' : {
41- ignoredPackages : [ ] ,
42- } ,
43- '20' : {
44- ignoredPackages : [ ] ,
45- } ,
46- '21' : {
47- ignoredPackages : [ ] ,
48- } ,
49- } ;
50-
5129function getAllPackages ( ) : string [ ] {
5230 const { workspaces } : { workspaces : string [ ] } = JSON . parse (
5331 fs . readFileSync ( path . join ( process . cwd ( ) , 'package.json' ) , 'utf-8' ) ,
@@ -80,11 +58,6 @@ function runTests(): void {
8058 BROWSER_TEST_PACKAGES . forEach ( pkg => ignores . add ( pkg ) ) ;
8159 }
8260
83- const versionConfig = SKIP_TEST_PACKAGES [ CURRENT_NODE_VERSION ] ;
84- if ( versionConfig ) {
85- versionConfig . ignoredPackages . forEach ( dep => ignores . add ( dep ) ) ;
86- }
87-
8861 if ( RUN_AFFECTED ) {
8962 runAffectedTests ( ignores ) ;
9063 } else {
0 commit comments