mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
Co-authored-by: marchantweb <[email protected]> Co-authored-by: mdong1909 <[email protected]> Co-authored-by: Hiroshi Ogawa <[email protected]> Co-authored-by: Vladimir Sheremet <[email protected]> Co-authored-by: Michael Dong <[email protected]> Co-authored-by: Ujjwaljain16 <[email protected]> Co-authored-by: sheremet-va <[email protected]> Co-authored-by: hi-ogawa <[email protected]> Co-authored-by: Ari Perkkiƶ <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Carlo Jeske <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
34 lines
1.5 KiB
TypeScript
34 lines
1.5 KiB
TypeScript
// noinspection ES6PreferShortImport: IntelliJ IDE hint to avoid warning to use `~/contributors`, will fail on build if changed
|
|
|
|
/* Texts */
|
|
export const vitestName = 'Vitest'
|
|
export const vitestShortName = 'Vitest'
|
|
export const vitestDescription = 'Next generation testing framework powered by Vite'
|
|
|
|
/* CDN fonts and styles */
|
|
export const googleapis = 'https://fonts.googleapis.com'
|
|
export const gstatic = 'https://fonts.gstatic.com'
|
|
export const font = `${googleapis}/css2?family=Readex+Pro:wght@200;400;600&display=swap`
|
|
|
|
/* vitepress head */
|
|
export const ogUrl = 'https://vitest.dev/'
|
|
export const ogImage = `${ogUrl}og.jpg`
|
|
|
|
/* GitHub and social links */
|
|
export const github = 'https://github.com/vitest-dev/vitest'
|
|
export const releases = 'https://github.com/vitest-dev/vitest/releases'
|
|
export const contributing = 'https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md'
|
|
export const discord = 'https://chat.vitest.dev'
|
|
export const bluesky = 'https://bsky.app/profile/vitest.dev'
|
|
export const mastodon = 'https://elk.zone/m.webtoo.ls/@vitest'
|
|
|
|
/* Avatar/Image/Sponsors servers */
|
|
export const preconnectLinks = [googleapis, gstatic]
|
|
export const preconnectHomeLinks = [googleapis, gstatic]
|
|
|
|
/* PWA runtime caching urlPattern regular expressions */
|
|
export const pwaFontsRegex = new RegExp(`^${googleapis}/.*`, 'i')
|
|
export const pwaFontStylesRegex = new RegExp(`^${gstatic}/.*`, 'i')
|
|
// eslint-disable-next-line prefer-regex-literals
|
|
export const githubusercontentRegex = new RegExp('^https://((i.ibb.co)|((raw|user-images).githubusercontent.com))/.*', 'i')
|