stack/apps/e2e/tests/general
Aman Ganapathy db6bd03e06
[Chore][Fix]: Skip Failing CLI Tests, Rework Failing AI Endpoint Validation test (#1258)
### Context
In a [previous PR](https://github.com/stack-auth/stack-auth/pull/1258),
we hardcoded the mode to link because local emulator wasn't in a ready
state yet. Soon after, we started encountering three failing tests on
dev

The three cli tests that were failing on dev were failing because they
required the create mode flag to be set. The hardcode to link made the
create paths unreachable. Since we don't have local emulator working,
allowing users to pass in opts.mode would be bad practice- they'd be
triggering local emulator actions without the local emulator being set
up.

Also, there was a failing AI endpoint test. The unified AI endpoint
tests are set up so that if certain env variables are not present,
certain tests aren't run. In practice, if the openrouter key isn't set,
the tests that require actually processing a full AI endpoint result
without forwarding to prod will be skipped. The failing test was meant
to just check schema validation but it performed a full request instead.

### Summary of Changes
We just skip the tests for now. They'll only become relevant when
"create" is a legitimate workflow, which necessitates the function of
local emulator. There is no regression risk because the flow they're
testing isn't active yet, and so the only thing we could possibly test
is that passing the create mode will invoke a certain function which
isn't helpful at this state.

The unified AI endpoint failing test was reworked, another test
accomplishes the same schema validation effect. We don't lose coverage
by axing the failing test because other AI tests already test valid
request bodies (if they weren't valid, they wouldn't get a response).
2026-03-16 15:35:53 -07:00
..
cli.test.ts [Chore][Fix]: Skip Failing CLI Tests, Rework Failing AI Endpoint Validation test (#1258) 2026-03-16 15:35:53 -07:00
lint.test.ts Reduce test flakeyness (#517) 2025-03-07 13:34:50 -08:00
sdk-implementations.test.ts [Fix] [Feat] Update OAuth Sign-In and Get Token Functions to Work (#1130) 2026-01-28 02:17:27 +00:00
setup-wizard.test.ts Speed up tests (#1063) 2025-12-28 11:25:04 -08:00
typecheck.test.ts Partial refunds frontend (#1123) 2026-01-29 11:20:04 -08:00