-
-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable BASE_URL
tests
#1828
Enable BASE_URL
tests
#1828
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// `vite-plugin-env` controlling it and the lack of a way to pass in an Astro config using | ||
// `getViteConfig()` from `astro/config`. | ||
test.todo('returns slugs with a custom `base` option', () => { | ||
test('returns slugs with a custom `base` option', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this test does not need the whole resetModules()
→ stubEnv()
→ import()
dance as contrary to base.ts
, BASE_URL
is not used/evaluated at the top-level scope of the module but in the scope of the function under test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for remembering we had these stubbed out and realising these tests could now work! Lovely work @HiDeoo 💖
* main: i18n(zh-cn): Update docs about synced-tabs (withastro#1834) i18n(zh-cn): Update some docs about withastro#1620 & withastro#1613 (withastro#1835) Add more diagnostic help to error messages thrown by `<Steps>` (withastro#1838) i18n(zh-cn): Update components.mdx (withastro#1836) i18n(zh-cn): Update community-content.mdx (withastro#1833) Improve type checking job (withastro#1831) [ci] format [ci] release (withastro#1832) i18n(ru): update ru.json (withastro#1826) Fix `<Tabs>` sync issue with inconsistent use of `icon` on `<TabItem>` components (withastro#1811) Enable `BASE_URL` tests (withastro#1828)
Description
Following the merge of #1613, this PR enables the
BASE_URL
tests we had in the codebase using a similar approach as the one used to stub theMODE
toproduction
in the tests.