@@ -984,7 +984,7 @@ export default typescript.config([
984
984
boundaries,
985
985
} ,
986
986
settings : {
987
- // order matters here in case of nested directories
987
+ // order matters here because of nested directories
988
988
'boundaries/elements' : [
989
989
// --- stories ---
990
990
{
@@ -996,6 +996,33 @@ export default typescript.config([
996
996
type : 'story-book' ,
997
997
pattern : 'static/app/stories' ,
998
998
} ,
999
+ // --- tests ---
1000
+ {
1001
+ type : 'test-sentry' ,
1002
+ pattern : [
1003
+ 'static/app/**/*.spec.{ts,js,tsx,jsx}' ,
1004
+ 'tests/js/sentry-test/**/*.*' ,
1005
+ 'static/app/**/*{t,T}estUtils*.{js,mjs,ts,tsx}' ,
1006
+ ] ,
1007
+ mode : 'full' ,
1008
+ } ,
1009
+ {
1010
+ type : 'test-getsentry' ,
1011
+ pattern : [
1012
+ 'static/gsApp/**/*.spec.{ts,js,tsx,jsx}' ,
1013
+ 'tests/js/getsentry-test/**/*.*' ,
1014
+ ] ,
1015
+ mode : 'full' ,
1016
+ } ,
1017
+ {
1018
+ type : 'test-gsAdmin' ,
1019
+ pattern : [ 'static/gsAdmin/**/*.spec.{ts,js,tsx,jsx}' ] ,
1020
+ mode : 'full' ,
1021
+ } ,
1022
+ {
1023
+ type : 'test' ,
1024
+ pattern : 'tests/js' ,
1025
+ } ,
999
1026
// --- specifics ---
1000
1027
{
1001
1028
type : 'devtoolbar' ,
@@ -1045,19 +1072,6 @@ export default typescript.config([
1045
1072
type : 'gsAdmin' ,
1046
1073
pattern : 'static/gsAdmin' ,
1047
1074
} ,
1048
- // --- tests ---
1049
- {
1050
- type : 'sentry-test' ,
1051
- pattern : 'tests/js/sentry-test' ,
1052
- } ,
1053
- {
1054
- type : 'getsentry-test' ,
1055
- pattern : 'tests/js/getsentry-test' ,
1056
- } ,
1057
- {
1058
- type : 'tests' ,
1059
- pattern : 'tests/js' ,
1060
- } ,
1061
1075
// --- configs ---
1062
1076
{
1063
1077
type : 'configs' ,
@@ -1088,10 +1102,6 @@ export default typescript.config([
1088
1102
from : [ 'sentry*' ] ,
1089
1103
allow : [ 'core*' , 'sentry*' ] ,
1090
1104
} ,
1091
- {
1092
- from : [ 'sentry-test' ] ,
1093
- allow : [ 'tests' ] ,
1094
- } ,
1095
1105
{
1096
1106
from : [ 'getsentry*' ] ,
1097
1107
allow : [ 'core*' , 'getsentry*' , 'sentry*' ] ,
@@ -1106,21 +1116,52 @@ export default typescript.config([
1106
1116
allow : [ 'devtoolbar' , 'sentry*' ] ,
1107
1117
} ,
1108
1118
{
1109
- from : [ 'core-button ' ] ,
1110
- allow : [ 'core*' ] ,
1119
+ from : [ 'test-sentry ' ] ,
1120
+ allow : [ 'test-sentry' , 'test' , ' core*' , 'sentry *'] ,
1111
1121
} ,
1112
1122
{
1113
- from : [ 'tests' ] ,
1114
- allow : [ 'sentry*' ] ,
1123
+ // todo does test-gesentry need test-sentry?
1124
+ from : [ 'test-getsentry' ] ,
1125
+ allow : [
1126
+ 'test-getsentry' ,
1127
+ 'test-sentry' ,
1128
+ 'test' ,
1129
+ 'core*' ,
1130
+ 'getsentry*' ,
1131
+ 'sentry*' ,
1132
+ ] ,
1133
+ } ,
1134
+ {
1135
+ from : [ 'test-gsAdmin' ] ,
1136
+ allow : [
1137
+ 'test-gsAdmin' ,
1138
+ 'test-getsentry' ,
1139
+ 'test-sentry' ,
1140
+ 'test' ,
1141
+ 'core*' ,
1142
+ 'gsAdmin*' ,
1143
+ 'sentry*' ,
1144
+ 'getsentry*' ,
1145
+ ] ,
1146
+ } ,
1147
+ {
1148
+ from : [ 'test' ] ,
1149
+ allow : [ 'test' , 'test-sentry' , 'sentry*' ] ,
1115
1150
} ,
1116
1151
{
1117
1152
from : [ 'configs' ] ,
1118
1153
allow : [ 'configs' , 'build-utils' ] ,
1119
1154
} ,
1155
+ // --- stories ---
1120
1156
{
1121
1157
from : [ 'story-files' , 'story-book' ] ,
1122
1158
allow : [ 'core*' , 'sentry*' , 'story-book' ] ,
1123
1159
} ,
1160
+ // --- core ---
1161
+ {
1162
+ from : [ 'core-button' ] ,
1163
+ allow : [ 'core*' ] ,
1164
+ } ,
1124
1165
// todo: sentry* shouldn't be allowed
1125
1166
{
1126
1167
from : [ 'core' ] ,
0 commit comments