Commit 96e39c5
authored
test: Run E2E tests in isolated tmp directory (#16783)
This PR updates our E2E test runner to run the apps from an isolated tmp
directory, instead of running them inside the monorepo.
The reason to do this is that running them inside the monorepo leads to
slightly different behavior, as dependencies can be looked up from
parent node_modules folders. This leads to behavior that differs from
actual standalone apps.
Now, the whole app is moved into a folder in the system tmp directory.
The package.json is adjusted to make it work there (e.g. rewriting volta
`extends` file paths etc), then normally run from there.
Some things had to be changed/fixed to make tests work here properly:
* Ensure all dependencies are actually defined. E.g. we sometimes used
`@sentry/core` in tests but did not have it as dependency.
* Ensure every test app has a volta config to ensure consistent
versions.
* Update wrangler in cloudflare apps as v3 had some issues
* align playwright version used to ensure browsers are always installed
* removed some unnecessary usage of `@sentry/core` in tests
* nuxt & solidstart tests do not need to copy iitm around anymore, this
just works now. I also got to remove almost all the overrides of the nft
package etc.1 parent 8f2f6e7 commit 96e39c5
File tree
122 files changed
+791
-663
lines changed- .github/workflows
- dev-packages/e2e-tests
- lib
- test-applications
- angular-17
- tests
- angular-18
- tests
- angular-19
- tests
- angular-20
- tests
- astro-4
- astro-5
- aws-lambda-layer-cjs
- cloudflare-hono
- cloudflare-workers
- create-remix-app-express-vite-dev
- tests
- create-remix-app-express
- tests
- create-remix-app-v2
- tests
- generic-ts3.8
- nestjs-11
- src
- nestjs-8
- src
- nestjs-basic-with-graphql
- nestjs-basic
- src
- nestjs-distributed-tracing
- tests
- nestjs-fastify
- src
- nestjs-graphql
- nestjs-with-submodules-decorator
- nestjs-with-submodules
- nextjs-13
- nextjs-14
- nextjs-15
- nextjs-app-dir
- components
- nextjs-orpc
- nextjs-turbo
- node-connect
- node-express-incorrect-instrumentation
- node-express-send-to-sentry
- node-express
- src
- tests
- node-fastify-3
- tests
- node-fastify-4
- tests
- node-fastify-5
- tests
- node-koa/tests
- node-otel-sdk-node
- node-otel-without-tracing
- node-otel
- node-profiling-cjs
- node-profiling-esm
- nuxt-3-dynamic-import
- tests
- nuxt-3-min
- tests
- nuxt-3-top-level-import
- tests
- nuxt-3
- tests
- nuxt-4
- tests
- react-router-6/tests
- react-router-7-framework-custom
- react-router-7-framework-node-20-18
- react-router-7-framework-spa-node-20-18
- react-router-7-framework-spa
- react-router-7-framework
- remix-hydrogen
- tests
- solid-solidrouter
- solidstart-dynamic-import
- tests
- solidstart-spa
- tests
- solidstart-top-level-import
- tests
- solidstart
- tests
- solid
- svelte-5
- sveltekit-2-svelte-5
- sveltekit-2.5.0-twp
- sveltekit-2
- sveltekit-cloudflare-pages
- src
- tests
- vue-3
- webpack-4
- webpack-5
- packages/cloudflare
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
122 files changed
+791
-663
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
923 | 927 | | |
924 | | - | |
| 928 | + | |
925 | 929 | | |
926 | 930 | | |
927 | 931 | | |
928 | 932 | | |
929 | 933 | | |
930 | 934 | | |
931 | 935 | | |
932 | | - | |
| 936 | + | |
933 | 937 | | |
934 | 938 | | |
935 | | - | |
| 939 | + | |
936 | 940 | | |
937 | 941 | | |
938 | 942 | | |
| |||
941 | 945 | | |
942 | 946 | | |
943 | 947 | | |
944 | | - | |
| 948 | + | |
945 | 949 | | |
946 | 950 | | |
947 | 951 | | |
| |||
955 | 959 | | |
956 | 960 | | |
957 | 961 | | |
958 | | - | |
| 962 | + | |
959 | 963 | | |
960 | 964 | | |
961 | 965 | | |
| |||
1037 | 1041 | | |
1038 | 1042 | | |
1039 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1040 | 1048 | | |
1041 | | - | |
| 1049 | + | |
1042 | 1050 | | |
1043 | 1051 | | |
1044 | 1052 | | |
1045 | 1053 | | |
1046 | 1054 | | |
1047 | 1055 | | |
1048 | 1056 | | |
1049 | | - | |
| 1057 | + | |
1050 | 1058 | | |
1051 | 1059 | | |
1052 | | - | |
| 1060 | + | |
1053 | 1061 | | |
1054 | 1062 | | |
1055 | 1063 | | |
| |||
1063 | 1071 | | |
1064 | 1072 | | |
1065 | 1073 | | |
1066 | | - | |
| 1074 | + | |
1067 | 1075 | | |
1068 | 1076 | | |
1069 | 1077 | | |
1070 | 1078 | | |
1071 | 1079 | | |
1072 | | - | |
| 1080 | + | |
1073 | 1081 | | |
1074 | 1082 | | |
1075 | 1083 | | |
1076 | 1084 | | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
| 1085 | + | |
| 1086 | + | |
1080 | 1087 | | |
1081 | 1088 | | |
1082 | 1089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | | - | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | | - | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | | - | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | | - | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments