Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
import '@angular/compiler';
// prettier-ignore
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';

setupTestBed({
browserMode: true, // Enables visual test preview
Expand Down
3 changes: 3 additions & 0 deletions apps/rxjs/14-race-condition/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { defineConfig } from 'cypress';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
// Cypress 14+ defaults justInTimeCompile to true (webpack only), which can
// intermittently run 0 tests in CI. Remove this line to opt back in.
justInTimeCompile: false,
},
});
3 changes: 3 additions & 0 deletions apps/testing/17-router/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { defineConfig } from 'cypress';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
// Cypress 14+ defaults justInTimeCompile to true (webpack only), which can
// intermittently run 0 tests in CI. Remove this line to opt back in.
justInTimeCompile: false,
},
});
3 changes: 3 additions & 0 deletions apps/testing/18-nested-components/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { defineConfig } from 'cypress';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
// Cypress 14+ defaults justInTimeCompile to true (webpack only), which can
// intermittently run 0 tests in CI. Remove this line to opt back in.
justInTimeCompile: false,
},
});
3 changes: 3 additions & 0 deletions apps/testing/19-input-output/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { defineConfig } from 'cypress';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
// Cypress 14+ defaults justInTimeCompile to true (webpack only), which can
// intermittently run 0 tests in CI. Remove this line to opt back in.
justInTimeCompile: false,
},
});
3 changes: 3 additions & 0 deletions apps/testing/20-modal/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { defineConfig } from 'cypress';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
// Cypress 14+ defaults justInTimeCompile to true (webpack only), which can
// intermittently run 0 tests in CI. Remove this line to opt back in.
justInTimeCompile: false,
},
});
3 changes: 3 additions & 0 deletions apps/testing/29-real-life-application/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { defineConfig } from 'cypress';
export default defineConfig({
component: {
...nxComponentTestingPreset(__filename),
// Cypress 14+ defaults justInTimeCompile to true (webpack only), which can
// intermittently run 0 tests in CI. Remove this line to opt back in.
justInTimeCompile: false,
},
});
192 changes: 107 additions & 85 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,117 +1,139 @@
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export const locales = {
root: {
label: 'English',
lang: 'en'
lang: 'en',
},
es: {
label: 'Español',
lang: 'es'
lang: 'es',
},
fr: {
label: 'Français',
lang: 'fr'
lang: 'fr',
},
pt: {
label: 'Português',
lang: 'pt'
lang: 'pt',
},
ru: {
label: 'Русский',
lang: 'ru'
lang: 'ru',
},
'zh-cn': {
label: '简体中文',
lang: 'zh-CN'
}
lang: 'zh-CN',
},
};


// https://astro.build/config
export default defineConfig({
integrations: [starlight({
title: 'Angular Challenges',
logo: {
src: './public/angular-challenge.webp',
alt: 'angular challenges logo'
},
favicon: './angular-challenge.ico',
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/tomalaforge/angular-challenges' },
{ icon: 'linkedin', label: 'LinkedIn', href: 'https://www.linkedin.com/in/thomas-laforge-2b05a945/' },
{ icon: 'x.com', label: 'X (Twitter)', href: 'https://twitter.com/laforge_toma' }
],
customCss: ['./src/styles/custom-css.css'],
sidebar: [{
label: 'Guides',
items: [{ autogenerate: { directory: 'guides' } }],
translations: {
es: 'Guías',
fr: 'Guides',
pt: 'Guias',
ru: 'Руководство',
'zh-CN': '指南'
}
},
{
label: 'Leaderboard',
items: [{ autogenerate: { directory: 'leaderboard', collapsed: true } }],
translations: {
es: 'Leaderboard',
fr: 'Leaderboard',
pt: 'Tabela de Classificação',
ru: 'Leaderboard',
'zh-CN': '排行榜'
}
},
{
label: 'Challenges',
items: [{ autogenerate: { directory: 'challenges' } }],
translations: {
es: 'Desafíos',
fr: 'Challenges',
pt: 'Desafios',
ru: 'Задачи',
'zh-CN': '挑战'
}
}],
head: [{
tag: 'script',
attrs: {
src: 'https://www.googletagmanager.com/gtag/js?id=G-6BXJ62W6G5',
async: true
}
}, {
tag: 'script',
content: `
integrations: [
starlight({
title: 'Angular Challenges',
logo: {
src: './public/angular-challenge.webp',
alt: 'angular challenges logo',
},
favicon: './angular-challenge.ico',
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/tomalaforge/angular-challenges',
},
{
icon: 'linkedin',
label: 'LinkedIn',
href: 'https://www.linkedin.com/in/thomas-laforge-2b05a945/',
},
{
icon: 'x.com',
label: 'X (Twitter)',
href: 'https://twitter.com/laforge_toma',
},
],
customCss: ['./src/styles/custom-css.css'],
sidebar: [
{
label: 'Guides',
items: [{ autogenerate: { directory: 'guides' } }],
translations: {
es: 'Guías',
fr: 'Guides',
pt: 'Guias',
ru: 'Руководство',
'zh-CN': '指南',
},
},
{
label: 'Leaderboard',
items: [
{ autogenerate: { directory: 'leaderboard', collapsed: true } },
],
translations: {
es: 'Leaderboard',
fr: 'Leaderboard',
pt: 'Tabela de Classificação',
ru: 'Leaderboard',
'zh-CN': '排行榜',
},
},
{
label: 'Challenges',
items: [{ autogenerate: { directory: 'challenges' } }],
translations: {
es: 'Desafíos',
fr: 'Challenges',
pt: 'Desafios',
ru: 'Задачи',
'zh-CN': '挑战',
},
},
],
head: [
{
tag: 'script',
attrs: {
src: 'https://www.googletagmanager.com/gtag/js?id=G-6BXJ62W6G5',
async: true,
},
},
{
tag: 'script',
content: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-6BXJ62W6G5');
`
}, {
tag: 'script',
attrs: {
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2438923752868254',
async: true
}
}],
components: {
MarkdownContent: './src/components/Content.astro',
TableOfContents: './src/components/TableOfContents.astro',
PageTitle: './src/components/PageTitle.astro',
MobileMenuFooter: './src/components/MobileMenuFooter.astro',
SiteTitle: './src/components/SiteTitle.astro',
Hero: './src/components/Hero.astro'
},
defaultLocale: 'root',
locales
}), svelte()],
output: "server",
adapter: vercel({ imageService: true })
`,
},
{
tag: 'script',
attrs: {
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2438923752868254',
async: true,
},
},
],
components: {
MarkdownContent: './src/components/Content.astro',
TableOfContents: './src/components/TableOfContents.astro',
PageTitle: './src/components/PageTitle.astro',
MobileMenuFooter: './src/components/MobileMenuFooter.astro',
SiteTitle: './src/components/SiteTitle.astro',
Hero: './src/components/Hero.astro',
},
defaultLocale: 'root',
locales,
}),
svelte(),
],
output: 'server',
adapter: vercel({ imageService: true }),
});
Loading
Loading