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
14 changes: 3 additions & 11 deletions apps/101-meal-planner-solution/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/101-meal-planner-solution/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/101-meal-planner-starter/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/101-meal-planner-starter/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/102-meal-planner-reactive-solution/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/102-meal-planner-reactive-solution/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/102-meal-planner-reactive-starter/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/102-meal-planner-reactive-starter/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/201-meal-planner-indirect-output-solution/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/201-meal-planner-indirect-output-solution/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/201-meal-planner-indirect-output-starter/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/201-meal-planner-indirect-output-starter/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/202-meal-planner-indirect-input-solution/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/202-meal-planner-indirect-input-solution/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/202-meal-planner-indirect-input-starter/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
12 changes: 1 addition & 11 deletions apps/202-meal-planner-indirect-input-starter/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ export default mergeConfig(
},
watch: false,
pool: 'threads',
/**
* @todo disable `isolate` once no-isolate parallelism is supported.
* @see https://github.com/vitest-dev/vitest/issues/8919
* @see https://github.com/vitest-dev/vitest/pull/8915
*/
isolate: true,
isolate: false,
projects: [
{
extends: true,
Expand All @@ -42,11 +37,6 @@ export default mergeConfig(
include: browserTestPatterns,
browser: {
enabled: true,
/**
* @todo hoist once browser.isolate and isolate are merged
* @see https://github.com/vitest-dev/vitest/pull/8890
*/
isolate: false,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
Expand Down
14 changes: 3 additions & 11 deletions apps/203-meal-repository-solution/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default defineConfig({
* @see https://github.com/analogjs/analog/issues/1891
*/
function applyAnalogWorkaround(plugins: Plugin[]): Plugin[] {
return plugins.map((plugin) => {
if (plugin.name === '@analogjs/vitest-angular-esm-plugin') {
return {
name: plugin.name,
apply: plugin.apply,
enforce: plugin.enforce,
config: () => ({ optimizeDeps: { include: ['tslib'] } }),
};
}
return plugin;
});
return plugins.filter(
(plugin) => plugin.name !== '@analogjs/vitest-angular-esm-plugin',
);
}
Loading