Commit a19e151
committed
feat(e2e): automatically setup clerk testing tokens in app.dev()
Integration tests that create their own applications (using `.clone().commit()`)
were failing in CI with "CLERK_FAPI is required" errors. This happened because
`setupClerkTestingToken()` needs the CLERK_FAPI environment variable, which is
set by calling `clerkSetup()`.
Long-running apps automatically call `clerkSetup()` during init, but apps created
inline in tests did not. Rather than requiring each test to manually call
`clerkSetup()`, moved it into the `Application.dev()` method to run automatically
after the server starts.
This ensures all applications (both long-running and inline) have proper testing
token setup without manual intervention, preventing future test failures and
reducing boilerplate.
Additionally, added logging of all installed @clerk/* packages (including transitive
dependencies) during setup to aid in debugging version mismatches in CI.1 parent dc4bbc4 commit a19e151
1 file changed
+37
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| |||
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
85 | 122 | | |
86 | 123 | | |
87 | 124 | | |
| |||
0 commit comments